private void Awake() { s_instance = this; if (LoadingScreen.Get() != null) { LoadingScreen.Get().NotifyMainSceneObjectAwoke(base.gameObject); } }
private void AssignPlayerBoardObjects() { foreach (ManaCounter counter in BoardStandardGame.Get().gameObject.GetComponentsInChildren <ManaCounter>(true)) { if (counter.m_Side == this.m_side) { this.m_manaCounter = counter; this.m_manaCounter.SetPlayer(this); this.m_manaCounter.UpdateText(); break; } } this.InitManaCrystalMgr(); foreach (Zone zone in ZoneMgr.Get().GetZones()) { if (zone.m_Side == this.m_side) { zone.SetController(this); } } }
private bool CheckCriticalAssetLoads() { if (!this.m_criticalAssetsLoaded) { if (Board.Get() == null) { return(false); } if (BoardCameras.Get() == null) { return(false); } if (BoardStandardGame.Get() == null) { return(false); } if (GameMgr.Get().IsTutorial() && (BoardTutorial.Get() == null)) { return(false); } if (MulliganManager.Get() == null) { return(false); } if (TurnStartManager.Get() == null) { return(false); } if (TargetReticleManager.Get() == null) { return(false); } if (GameplayErrorManager.Get() == null) { return(false); } if (EndTurnButton.Get() == null) { return(false); } if (BigCard.Get() == null) { return(false); } if (CardTypeBanner.Get() == null) { return(false); } if (TurnTimer.Get() == null) { return(false); } if (CardColorSwitcher.Get() == null) { return(false); } if (RemoteActionHandler.Get() == null) { return(false); } if (ChoiceCardMgr.Get() == null) { return(false); } if (InputManager.Get() == null) { return(false); } this.m_criticalAssetsLoaded = true; this.ProcessQueuedPowerHistory(); } return(true); }
private void OnDestroy() { s_instance = null; }