// 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;
 }
Exemplo n.º 2
0
 // 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;
 }