// // MonoBehavior methods. // void Awake() { Debug.Log("ServoUnityController.Awake())"); navbarController = FindObjectOfType <ServoUnityNavbarController>(); ime = FindObjectOfType <ServoUnityIME>(); mainCamera = Camera.main; }
private Vector2 lookAroundFactor = new Vector2(0.0f, 0.0f); // Normalised look around input. void Awake() { ime = FindObjectOfType <ServoUnityIME>(); c = gameObject.GetComponent <Camera>(); if (c == null) { c = Camera.main; } }