// Use this for initialization void Start() { Screen.showCursor = false; playerObject = GameObject.FindWithTag("Player"); playerAudio = playerObject.GetComponent("AudioSource") as AudioSource; soundPlayer = GetComponent("SoundPlayer") as SoundPlayer; Student = playerObject.GetComponent("StudentModel") as StudentModel; newtonController = GameObject.Find("Newton").GetComponent("NewtonController") as NewtonController; FPSInput = playerObject.GetComponent("FPSInputController") as FPSInputController; }
// Use this for initialization void Start() { Screen.showCursor = false; playerObject = GameObject.FindWithTag("Player"); playerAudio = playerObject.GetComponent("AudioSource") as AudioSource; soundPlayer = GetComponent("SoundPlayer") as SoundPlayer; Student = playerObject.GetComponent("StudentModel") as StudentModel; newtonController = GameObject.Find("Newton").GetComponent("NewtonController") as NewtonController; FPSInput = playerObject.GetComponent("FPSInputController") as FPSInputController; }