Inheritance: MonoBehaviour
Ejemplo n.º 1
0
    public void OnTriggerExit(Collider c)
    {
        MotherShipHangar h = c.GetComponent <MotherShipHangar> ();

        if (this.hangar == h)
        {
            this.hangar = null;
        }
    }
Ejemplo n.º 2
0
    public void OnTriggerEnter(Collider c)
    {
        MotherShipHangar h = c.GetComponent <MotherShipHangar> ();

        if (h != null)
        {
            this.hangar = h;
        }
    }
Ejemplo n.º 3
0
 public void OnTriggerExit(Collider c)
 {
     MotherShipHangar h = c.GetComponent<MotherShipHangar> ();
     if (this.hangar == h) {
         this.hangar = null;
     }
 }
Ejemplo n.º 4
0
 public void OnTriggerEnter(Collider c)
 {
     MotherShipHangar h = c.GetComponent<MotherShipHangar> ();
     if (h != null) {
         this.hangar = h;
     }
 }