Beispiel #1
0
    public virtual void Revive()
    {
        if (AttributesController.health <= 0)
        {
            AnimationController.SetAnimationParameter(EnemyAnimatorParameter.Revive);
            contactCollider.enabled = true;
        }

        AttributesController.ResetAllAttributes();
    }
Beispiel #2
0
    public virtual void Revive()
    {
        if (AttributesController.health <= 0)
        {
            AnimationController.SetAnimationParameter(PlayerAnimatorParameter.Revive); //AnimationController.SetRevive();
            contactCollider.enabled = true;
        }

        AttributesController.ResetAllAttributes();
        GameManager.instance.screenUIController.playerUIController.OnEnable();
    }
Beispiel #3
0
 protected virtual void OnEnable()
 {
     //Check Until GameManager instance is not Null
     StartCoroutine(WaitUntilConditionHappenCoroutine(ConditionFunc: () =>
     {
         bool condition = GameManager.instance?.gamePlayMode == GamePlayMode.AR;
         return(condition);
     },
                                                      action: () =>
     {
         transform.localScale = Vector3.one * GameManager.instance.characterLocalScaleForAR;
         AttributesController.ResetAllAttributes();
     }));
 }