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 UnityEngine; | |
| /* | |
| * Base class for singletons. Inherit from this class to create a monobehavior singleton. | |
| * This is useful for manager classes, main game logic, or any 'static' class that you want handy access to or need monobehavior functionality. | |
| * | |
| * Usage: | |
| * public class SomeManagerClass : Singleton<SomeManagerClass> | |
| * { | |
| * public bool someBool; | |
| * } |
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 UnityEngine; | |
| using UnityEngine.Audio; | |
| using System.Collections; | |
| using System.Collections.Generic; | |
| /* | |
| * Singleton class for playing audio files on the fly from code | |
| * USAGE: | |
| * -------------------------------------- | |
| * put audio you want to play in Assets/Resources/Sound/ |
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 UnityEngine; | |
| namespace FiniteStateMachine | |
| { | |
| class StateMachine : MonoBehaviour | |
| { | |
| public State currentState; | |
| public bool TransitionInFixedUpdate = false; |