Пример #1
0
    void Attack()
    {
        bool attacked = attackComponent.Attack("Attack");

        if (attacked)
        {
            target.AddDamage(autoAttackDamage);
            Debug.Log("attacked!");
        }
    }