예제 #1
0
    void OnTriggerEnter(Collider other)
    {
        GameUnit gu = other.GetComponent <GameUnit>();

        if (gu != null)
        {
            gu.InflictDamage(DamageDealt);
        }
    }