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
#region " Stat collection " | |
[System.Serializable] | |
public class Stat { | |
public float Base; | |
public float Modifier; | |
public float Value { get { return Base + Base * Modifier; } } | |
} |
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; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using UnityEditor; | |
using UnityEngine; | |
/// <summary> |
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 UnityEngine; | |
using System.Collections; | |
using UnityEditor; | |
// This defines how the TagList should be drawn | |
// in the inspector, when inspecting a GameObject with | |
// a MonoBehaviour which uses the TagList attribute |
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.Generic; | |
using UnityEngine; | |
using UnityEngine.Events; | |
using Sirenix.OdinInspector; | |
// Add this to the object that holds the Animator | |
public class StateMachineEventReceiver : MonoBehaviour | |
{ | |
[System.Serializable] |
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
[DisallowMultipleComponent] | |
public class DynamicTag : MonoBehaviour | |
{ | |
private static Dictionary<string, List<GameObject>> Collection = new Dictionary<string, List<GameObject>>(); | |
private static string KeyFromTag(DynamicTagItem tag) { | |
return tag.name; | |
} | |
public static void Register(DynamicTagItem tag, GameObject item) { |