Exemplo n.º 1
0
        public void StartGame()
        {
            Debug.Log("Start SlotsGame...");

            currentSlotsConfig       = (SlotsGameConfig)DataManager.Instance.CurrentGameTypeConfig;
            currentSlotMachineConfig = (SlotMachineConfig)DataManager.Instance.CurrentSimpleGameConfig;

            GUIController.Instance.ShowScreen <SlotMachineScreen>();
            GUIController.Instance.ShowScreen <TopBarScreen>();

            rewardMods = new RewardModificator(currentSlotMachineConfig);

            spinGenerator.SetRewardModificator(rewardMods);

            foreach (var curModConfig in currentSlotsConfig.modConfigs)
            {
                spinModificators.Add(curModConfig.CreateMod());
            }

            spinGenerator.SetSpinModificators(spinModificators);

            CalculateBets();
        }
Exemplo n.º 2
0
 public void SetRewardModificator(RewardModificator rewardMod)
 {
     rewardMods = rewardMod;
 }