Esempio n. 1
0
 private void Start()
 {
     rotationHandler  = GameObject.Find("Input").GetComponent <PropRotationHandler>();
     fading           = GameObject.Find("fade").GetComponent <Fading>();
     exitInputHandler = GameObject.Find("Input").GetComponent <ExitInputHandler>();
     SetRayCastingCamera(mainCam);
     Cursor.visible   = false;
     Cursor.lockState = CursorLockMode.Locked;
 }
 private void Awake()
 {
     rotationHandler = GameObject.Find("Input").GetComponent <PropRotationHandler>();
     source          = GetComponent <AudioSource>();
     fading          = GameObject.Find("fade").GetComponent <Fading>();
 }