예제 #1
0
 void Start()
 {
     // Get the Standard UI
     this.stdUI = GameObject.FindObjectOfType<StandardUI>();
     if (this.stdUI == null)
     {
         Debug.LogWarning("[UIOverlay] StandardUI not found! UIOverlay is DISABLED.");
         return;
     }
 }
예제 #2
0
 void Start()
 {
     // Get the Standard UI
     this.stdUI = GameObject.FindObjectOfType <StandardUI>();
     if (this.stdUI == null)
     {
         Debug.LogWarning("[UIOverlay] StandardUI not found! UIOverlay is DISABLED.");
         return;
     }
 }
예제 #3
0
    void Start()
    {
        // Get the Standard UI
        this.stdUI = GameObject.FindObjectOfType <StandardUI>();
        if (this.stdUI == null)
        {
            Debug.LogWarning("[UIDebugOverlay] StandardUI not found! UIDebugOverlay is DISABLED.");
            return;
        }

        // Get the current position of the bike camera
        this.bikeCameraTransform = bikeController.transform.Find("BikeCamera");
        this.camPositions[0]     = new PositionRotation(this.bikeCameraTransform);
    }
예제 #4
0
    void Start()
    {
        // Get the Standard UI
        this.stdUI = GameObject.FindObjectOfType<StandardUI>();
        if (this.stdUI == null)
        {
            Debug.LogWarning("[UIDebugOverlay] StandardUI not found! UIDebugOverlay is DISABLED.");
            return;
        }

        // Get the current position of the bike camera
        this.bikeCameraTransform = bikeController.transform.Find("BikeCamera");
        this.camPositions[0] = new PositionRotation(this.bikeCameraTransform);
    }