Example #1
0
 void OnTriggerEnter2D(Collider2D other)
 {
     if (other.tag == "Bullet" || other.tag == "Boomerang")
     {
         HitScript HS = other.GetComponent <HitScript> ();
         if ((HS.GetOwner() == PCS.GetPlayerNum()) && HS.IsBoomerang)
         {
             AS.ReloadSingle();
             HS.KillBoomerang();
         }
     }
 }