Beispiel #1
0
 private void OnCollisionExit(Collision other)
 {
     if (other.gameObject.layer == 9 && targets.Contains(other.gameObject))
     {
         boombox.boost us;
         us   = new boombox.boost();
         us.h = 0;
         us.t = 0;
         us.r = 0;
         targets.Remove(other.gameObject);
         other.gameObject.SendMessage("Kanapka_Z_Dzemem", us);
     }
 }
Beispiel #2
0
 public void Kanapka(boombox.boost ho)
 {
     range += ho.r;
     tor   /= ho.t;
     hpp    = ho.h;
 }
Beispiel #3
0
 public void Kanapka(boombox.boost ho)
 {
     tor /= ho.t;
     hpp  = ho.h;
 }
Beispiel #4
0
 private void Start()
 {
     ut = this.gameObject.GetComponentInParent <boombox>().uu;
 }