예제 #1
0
 public void TriggerChangeRight(RaycastPressEvents trigger)
 {
     if (trigger != null)
     {
         rightTrigger = trigger;
     }
 }
예제 #2
0
 public void TriggerChangeLeft(RaycastPressEvents trigger)
 {
     if (trigger != null)
     {
         leftTrigger = trigger;
     }
 }
예제 #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;
     }
 }
예제 #4
0
 public void TriggerChangeBoth(RaycastPressEvents trigger)
 {
     TriggerChangeRight(trigger);
     TriggerChangeLeft(trigger);
 }