コード例 #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();
        }
コード例 #2
0
 public RewardModificator(SlotMachineConfig originalConfig)
 {
     this.originalConfig = originalConfig;
 }