Skip to content

Instantly share code, notes, and snippets.

View awhiskin's full-sized avatar

Andrew Whiskin awhiskin

  • Sydney, Australia
View GitHub Profile
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;
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 = []
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace Entities
{
public interface IEntityHealth
{
void TakeDamage(float amount, DamageType type);
void AddHealth(float amount);
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace Entities
{
public class LivingEntity : BaseEntity, IEntityHealth
{
[SerializeField]
protected float maxHealth = 100f;
@awhiskin
awhiskin / animals.json
Last active August 26, 2019 05:02
JSON file containing some common animals and happy/positive adjectives
{
"animals": [
"Dog",
"Cat",
"Zebra",
"Elephant",
"Giraffe",
"Lion",
"Tiger",
"Panda",