Ejemplo n.º 1
0
    public void EndParasite()
    {
        player.OnPlayerMaxHealth -= HandlePlayerMaxHealth;
        player = null;

        if (tickCoroutine != null)
        {
            StopCoroutine(tickCoroutine);
            tickCoroutine = null;
        }

        toleranceCtrl.SetActive(false);

        parasiteCommandCtrl.ToggleButton(false);
        idleCommandsCtrl.ToggleButton(false);

        PlatformManager.OnParasiteEnd(this);

        StartCoroutine(ShotAnimation());
    }
Ejemplo n.º 2
0
 private void HandlePlayerMaxHealth()
 {
     tolleranceCtrl.SetActive(true);
 }