Ejemplo n.º 1
0
 void OnTriggerEnter(Collider other)
 {
     if (other.tag == "hardpoint")
     {
         IsColliding = true;
         Collidewith = other.GetComponent <hardpoint>();
     }
 }
Ejemplo n.º 2
0
 // Use this for initialization
 void Start()
 {
     assignedHardpoint = transform.parent.GetComponent <hardpoint>();
     shipCombat        = transform.parent.parent.GetComponent <shipCombat>();
 }
Ejemplo n.º 3
0
 void Start()
 {
     childHardpoint  = GetComponentInChildren <hardpoint>();
     hardpointOffset = childHardpoint.transform.localPosition;
 }
Ejemplo n.º 4
0
 void OnTriggerExit()
 {
     IsColliding = false;
     Collidewith = null;
 }