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; | |
| using System.Collections.Generic; | |
| namespace Game.Util | |
| { | |
| public class FluentFsm<TState, TEvent> | |
| where TState : Enum | |
| where TEvent : Enum | |
| { | |
| readonly Dictionary<TState, State> _states = new Dictionary<TState, State>(); |
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 UnityEditor; | |
| using UnityEngine; | |
| /// <summary> | |
| /// Demonstrates how to use <see cref="UnityEditor.PreviewRenderUtility"/> | |
| /// to render a small interactive scene in a custom editor window. | |
| /// </summary> | |
| public class CustomPreviewExample : EditorWindow | |
| { | |
| [MenuItem("My Tools/Custom Preview")] |