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> (); }
public void ResetBogeys() { BogeyLeft.ResetBogey(); BogeyRight.ResetBogey(); }