protected override void Collect(GameManager PlayerGameManager) { RewardMob RMInstance = RewardMob.instance; if (RMInstance != null) { RMInstance.SendReward("This is your reward!", 1); } base.Collect(PlayerGameManager); }
public void ShowDeathMenu() { RMInstance = RewardMob.instance; EndGameMenuGO.SetActive(true); DeathBackgroundGO.SetActive(true); TimeUpBackgroundGO.SetActive(false); if (RMInstance != null) { RMInstance.ShowButton(); } StartCoroutine(ShowAd()); }