Ejemplo n.º 1
0
    //
    // MonoBehavior methods.
    //

    void Awake()
    {
        Debug.Log("ServoUnityController.Awake())");
        navbarController = FindObjectOfType <ServoUnityNavbarController>();
        ime        = FindObjectOfType <ServoUnityIME>();
        mainCamera = Camera.main;
    }
Ejemplo n.º 2
0
    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;
        }
    }