void Start() { b = GameObject.Find ("ArmStrokes").GetComponent<ArmStrokes>(); countDown = GameObject.Find ("Countdown").GetComponent<CountDown>(); p = GameObject.Find ("Player").GetComponent<PlayerControl>(); SC = GameObject.Find ("SwimmingController").GetComponent<SwimmingController>(); Sounds = GameObject.Find("Sounds").GetComponent<SwimmingSounds>(); }
void Start() { addPoints(0); gameOverCanvas = GameObject.Find ("GameOver"); b = GameObject.Find ("ArmStrokes").GetComponent<ArmStrokes> (); instructions = GameObject.Find ("Instructions"); canvas1 = GameObject.Find ("Canvas1"); timer = GetComponent<Timer> (); waitGreenSquare = GameObject.Find ("WaitGreenSquare"); waitButton = GameObject.Find ("Wait"); SC = GameObject.Find ("SwimmingController").GetComponent<SwimmingController>(); Sounds = GameObject.Find("Sounds").GetComponent<SwimmingSounds>(); gameOverCanvas.SetActive (false); canvas1.SetActive (false); Time.timeScale = 0; }
void Start() { player = GameObject.Find ("Player"); p = player.GetComponent<PlayerControl> (); Timer = GetComponent<Timer> (); animations = player.GetComponent<Animations> (); cam = GameObject.Find ("Main Camera").GetComponent<CameraController> (); countDown = GameObject.Find ("Countdown").GetComponent<CountDown> (); SC = GameObject.Find ("SwimmingController").GetComponent<SwimmingController>(); Sounds = GameObject.Find ("Sounds").GetComponent<SwimmingSounds>(); armStrokeOK = true; leftStrokeOK = true; rightStrokeOK = true; square1.enabled = false; square2.enabled = false; }
void Start() { SC = GameObject.Find ("SwimmingController").GetComponent<SwimmingController>(); }