예제 #1
0
파일: BaseAI.cs 프로젝트: raomuqi/vstgit
 private void OnTriggerEnter(Collider other)
 {
     if (other.gameObject.CompareTag(TagCfg.SHIP))
     {
         SceneGameObject sgo = other.gameObject.GetComponent <SceneGameObject>();
         if (sgo != null)
         {
             sgo.SetDamage(rushPower, transform.position, this);
             OnRush();
         }
     }
 }
예제 #2
0
 private void OnTriggerEnter(Collider other)
 {
     if (other.gameObject.CompareTag(tagetTag))
     {
         SceneGameObject sgo = other.gameObject.GetComponent <SceneGameObject>();
         if (sgo != null)
         {
             sgo.SetDamage(power, transform.position, master);
         }
         Recycle();
     }
 }