private void OnTriggerEnter(Collider other) { if (ValidCheck(other) == false) { return; } BattleObject _script = other.GetComponent <BattleObject>(); if (_script != null) { if (_script == Defender) { Attacker.TryAttack(); EndFire(); } } }