Exemplo n.º 1
0
 public void TriggerChangeRight(RaycastPressEvents trigger)
 {
     if (trigger != null)
     {
         rightTrigger = trigger;
     }
 }
Exemplo n.º 2
0
 public void TriggerChangeLeft(RaycastPressEvents trigger)
 {
     if (trigger != null)
     {
         leftTrigger = trigger;
     }
 }
Exemplo n.º 3
0
 private void Awake()
 { // If we have no default trigger on the left or right, supply an empty trigger
     emptyTrigger = GameManager.instance.GetComponent <RaycastPressEvents>();
     if (emptyTrigger == null)
     {
         emptyTrigger = GameManager.instance.gameObject.AddComponent <RaycastPressEvents>();
     }
     if (rightTrigger == null)
     {
         rightTrigger = emptyTrigger;
     }
     if (leftTrigger == null)
     {
         leftTrigger = emptyTrigger;
     }
 }
Exemplo n.º 4
0
 public void TriggerChangeBoth(RaycastPressEvents trigger)
 {
     TriggerChangeRight(trigger);
     TriggerChangeLeft(trigger);
 }