Пример #1
0
    public void Revive()
    {
        isDead     = false;
        isReviving = true;
        mMovement.mesh.transform.DOLocalMoveY(0f, 1f).SetDelay(2f);
        health = GetComponent <CharacterStatistics>().ModifiedStatValue(CharacterStatType.MaxHealth, gameObject);

        mMovement.MarkSpaceUnwalkable();

        GetComponentInChildren <Animator>().Play("Revive");

        Invoke("FinishRevive", 4f);
    }