public void Open(IGameIntegrationModel gameItems) { if (!IsInitialized) { DevLogger.Error("Initialize MarketWidget before use.", MarketLogType.MarketWidget); return; } if (gameItems == null) { DevLogger.Error("It's not impossible to Open MarketWidget. IGameIntegrationModel is null", MarketLogType.MarketWidget); return; } ApplyMarketStrategy(); GameModel = gameItems; _formContainer.Run(); var textPopUp = GetForm <MarketTextPopUp>(); PopUpController.Initialize(textPopUp); _soundManager.IsRuning = true; View = GetForm <MarketView>(); View.ApplyModel(Model); ApplyState <MarketOpeningState>(); }
// Use this for initialization void Start() { TargetManager.ableToSpawn = true; PopUpController.Initialize(); level = 1; correctHits = 0; failedTarget = false; totalPoints = 0; strikes = 0; badStrikes = 0; time = 300; secTime = time % 60; }
// Use this for initialization void Start() { Update_CurrentFunction = Update_ModeDetect; hexGrid = GameObject.FindObjectOfType <HexGrid>(); linerenderer = transform.GetComponentInChildren <LineRenderer>(); UnitPanel.SetActive(false); GameOverScreen.SetActive(false); DamageLog.SetActive(false); selections = new List <GameObject>(); RangeBoxes = new List <GameObject>(); dmgLog = new List <DamageLogEntry>(); PopUpController.Initialize(); }
// Use this for initialization void Start() { time = 300; secTime = time % 60; PopUpController.Initialize(); }
void Start() { PopUpController.Initialize(); }