Advertisement
Tarodev

[SerializeField] 3

Jan 29th, 2020
198
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.28 KB | None | 0 0
  1. public class GameManager : MonoBehaviour {
  2.  
  3.     [HideInInspector]
  4.     public GameState State; // This will be accessible from code but hidden in the inspector.
  5.  
  6.     public enum GameState {
  7.         MainMenu,
  8.         Playing,
  9.         Paused,
  10.         Victory,
  11.         Defeat
  12.     }
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement