예제 #1
0
    private void OnTriggerEnter(Collider other)
    {
        PlayerBase playerBase = other.GetComponent <PlayerBase>();

        if (playerBase != null)
        {
            playerBase.Damage(attack);
        }
    }
예제 #2
0
 public void AttackBase()
 {
     _targetBase?.Damage(EnemyType.Damage);
 }