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>();
        }
Example #2
0
 // 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;
 }
Example #3
0
 // 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();
 }
Example #4
0
 // Use this for initialization
 void Start()
 {
     time    = 300;
     secTime = time % 60;
     PopUpController.Initialize();
 }
Example #5
0
 void Start()
 {
     PopUpController.Initialize();
 }