private void Update() { if (slot.debug.useDebugKeys) { if (Input.GetKeyDown(KeyCode.Alpha1)) { assets.tweens.tsBonus.Play(0); } if (Input.GetKeyDown(KeyCode.Alpha2)) { assets.tweens.tsWinSpecial.Play(0); } if (Input.GetKeyDown(KeyCode.Alpha3)) { assets.tweens.tsIntro1.Play(0); } if (Input.GetKeyDown(KeyCode.Alpha4)) { assets.tweens.tsIntro2.Play(0); } if (Input.GetKeyDown(KeyCode.F10)) { slot.AddEvent(new SlotEvent(bonusGame.Activate)); } } if (Application.platform == RuntimePlatform.Android) { if (Input.GetKeyDown(KeyCode.Escape)) { Application.Quit(); } } }
private void Update() { if (slot.debug.useDebugKeys) { if (Input.GetKeyDown(KeyCode.Alpha1)) { assets.tweens.tsBonus.Play(0); } if (Input.GetKeyDown(KeyCode.Alpha2)) { assets.tweens.tsWinSpecial.Play(0); } if (Input.GetKeyDown(KeyCode.Alpha3)) { assets.tweens.tsIntro1.Play(0); } if (Input.GetKeyDown(KeyCode.Alpha4)) { assets.tweens.tsIntro2.Play(0); } if (Input.GetKeyDown(KeyCode.F10)) { slot.AddEvent(new SlotEvent(bonusGame.Activate)); } } if (Application.platform == RuntimePlatform.Android) { if (Input.GetKeyDown(KeyCode.Escape)) { Application.Quit(); } } if (keepPlaying && slot.state == CustomSlot.State.Idle && Time.time - waitBetweenGames > 1f) { StartCoroutine(GoEndless()); } else { StopCoroutine(GoEndless()); CoroutineManager.Instance.StopAllCoroutines(); } }
public void OnActivated() { bonusSlot.AddEvent(bonusSlot.StartRound); }