Beispiel #1
0
 private void SetBogeys()
 {
     bogeys              = GetComponentsInChildren <Bogey> ();
     BogeyLeft           = bogeys [0].transform.position.x < bogeys [1].transform.position.x ? bogeys [0] : bogeys [1];
     BogeyRight          = BogeyLeft == bogeys [0] ? bogeys [1] : bogeys [0];
     bogeyLeftTransform  = BogeyLeft.GetComponent <Transform> ();
     bogeyRightTransform = BogeyRight.GetComponent <Transform> ();
 }
Beispiel #2
0
 public void ResetBogeys()
 {
     BogeyLeft.ResetBogey();
     BogeyRight.ResetBogey();
 }