예제 #1
0
        public void Damage(Damager d)
        {
            if (d == null)
            {
                return;
            }

            this.Damage(d.Damage);
        }
예제 #2
0
        void OnTriggerEnter(Collider other)
        {
            Damager d = other.gameObject.GetComponent <Damager>();

            this.Damage(d);
        }