void Start() { state = GameState.AWAITING_CONNECT; _connection = gameObject.AddComponent <Connection>(); _loginMenu = gameObject.AddComponent <LoginScreenLogic>(); _cheatMenu = gameObject.AddComponent <CheatMenuLogic>(); _simulation = gameObject.AddComponent <WorldSimulation>(); _abil = FindObjectOfType <AbilitiesMenuHook>(); _abil.hide(); }
void Start() { state = GameState.AWAITING_CONNECT; _connection = gameObject.AddComponent<Connection>(); _loginMenu = gameObject.AddComponent<LoginScreenLogic>(); _cheatMenu = gameObject.AddComponent<CheatMenuLogic>(); _simulation = gameObject.AddComponent<WorldSimulation>(); _abil = FindObjectOfType<AbilitiesMenuHook>(); _abil.hide (); }