void Collected() { isCollected = true; if (coll) { coll.enabled = false; } if (activator) { activator.Release(); activator.enabled = false; } if (!string.IsNullOrEmpty(soundCollect)) { M8.SoundPlaylist.instance.Play(soundCollect, false); } signalCollect.Invoke(amount); //update display if (animator && !string.IsNullOrEmpty(takeCollect)) { StartCoroutine(DoCollectedAnimate()); } else { gameObject.SetActive(false); } }
public void Next() { if (mIsCorrect) { if (signalInvokeBonusScore) { signalInvokeBonusScore.Invoke(GameData.instance.bonusRoundScore); } } Close(); }
public void Invoke() { signal.Invoke(invokeValue); }