This file contains hidden or 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; | |
/// <summary> | |
/// Place the labels for the Triggers in this enum. | |
/// Don't change the first label, NullTrigger as FSMSystem class uses it. | |
/// </summary> | |
public enum Trigger | |
{ | |
NullTrigger = 0, // Use this trigger to represent a non-existing trigger in your system. |
This file contains hidden or 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.Runtime.InteropServices; | |
using UnityEngine; | |
public class MathUtil | |
{ | |
// Evil floating point bit level hacking. | |
[StructLayout(LayoutKind.Explicit)] | |
private struct FloatIntUnion | |
{ | |
[FieldOffset(0)] |