Example #1
0
    public void ShowReviveVideo()
    {
        if (lifeVideo.IsLoaded())
        {
            lifeVideo.Show();
        }
        else
        {
            RequestLifeVideo();
        }


        //TEST RESPAWN IN GAME
        DieEvent.DesactivatePanel();
        Will.will.cannonTriggered.GetComponent <CannonParent>().Reactivate();
        StartCoroutine(IGLevelManager.countDownHandler());
    }
Example #2
0
    public void ReviveWithCoins()
    {
        if (Singleton.instance.Coins >= coinsToRevive)
        {
            Singleton.instance.Coins -= (int)coinsToRevive;
            Singleton.SaveCoins();

            //Time.timeScale = 1;
            DesactivatePanel();
            Will.will.cannonTriggered.GetComponent <CannonParent>().Reactivate();
            //Will.will.Revive();
            StartCoroutine(IGLevelManager.countDownHandler());

            coinsToRevive *= 1.5f;
            iGLevelManager.coinsToRevive.text = ((int)coinsToRevive).ToString();
        }
    }
Example #3
0
 private void OnRevivePlayer(object sender, EventArgs args)
 {
     DieEvent.DesactivatePanel();
     Will.will.cannonTriggered.GetComponent <CannonParent>().Reactivate();
     StartCoroutine(IGLevelManager.countDownHandler());
 }