예제 #1
0
    private void OnTriggerEnter(Collider other)
    {
        if (ValidCheck(other) == false)
        {
            return;
        }

        BattleObject _script = other.GetComponent <BattleObject>();

        if (_script != null)
        {
            if (_script == Defender)
            {
                Attacker.TryAttack();
                EndFire();
            }
        }
    }