void Awake() { if (this.characterController == null) { this.characterController = this.GetComponent <CompleteCharacterControllerTraining>(); } if (this.guardian == null) { this.guardian = this.GetComponent <GuardianTraining>(); } }
// Use this for initialization void Awake() { if (this.characterController == null) { this.characterController = GetComponent <CompleteCharacterControllerTraining>(); } if (this.characterInput == null) { this.characterInput = GetComponent <CharacterInputDetectorTraining>(); } if (this.cameraController == null) { this.cameraController = GetComponent <CameraControllerTraining>(); } if (this.cameraInput == null) { this.cameraInput = GetComponent <CameraInputDetectorTraining>(); } Cursor.lockState = CursorLockMode.Locked; Cursor.visible = false; }