void Start() { _game = gameObject.GetComponent <MainProxy>(); _sim = gameObject.GetComponent <WorldSimulation>(); _uiHook = FindObjectOfType <CheatMenuHook>(); _uiHook.hideContent(); }
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(); }