Пример #1
0
    public void AttackCheck()
    {
        if (currentState != SlimeState.ATTACK)
        {
            return;
        }

        CharacterStat targetStat
            = playerCC.GetComponent <CharacterStat>();

        targetStat.ApplyDamage(stat);
    }
Пример #2
0
    public void AttackCheck()
    {
        CharacterStat targetStat = PlayerCc.GetComponent <CharacterStat>();

        targetStat.ApplyDamage(stat);
    }