This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
public class FakeBroomPhysics : MonoBehaviour | |
{ | |
[SerializeField] | |
// Assign the Transform that contains the broom head model | |
Transform broomHead = default; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
extends RichTextLabel | |
const HELP_COMMAND = "help" # Display all help commands | |
const DIR_COMMAND = "dir" # Display all files and folders in current working directory | |
const CHANGE_DIRECTORY_COMMAND = "cd" # Change working directory | |
const QUIT_COMMAND = "exit" # Quit application | |
const CLEAR_COMMAND = "clear" # Clear terminal windows | |
var current_context : Context | |
var past_commands = [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
namespace Entities | |
{ | |
public interface IEntityHealth | |
{ | |
void TakeDamage(float amount, DamageType type); | |
void AddHealth(float amount); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
namespace Entities | |
{ | |
public class LivingEntity : BaseEntity, IEntityHealth | |
{ | |
[SerializeField] | |
protected float maxHealth = 100f; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"animals": [ | |
"Dog", | |
"Cat", | |
"Zebra", | |
"Elephant", | |
"Giraffe", | |
"Lion", | |
"Tiger", | |
"Panda", |