Beispiel #1
0
 void Awake()
 {
     if (UIAspectManager.instance == null)
     {
         UIAspectManager.init();
     }
     thisPosition = transform.localPosition;
     UpdateUIPosition();
 }
Beispiel #2
0
    void Awake()
    {
        if (UIAspectManager.instance == null)
        {
            UIAspectManager.init();
        }

        thisCameraOrthoSize = GetComponent <Camera>().orthographicSize;
        UpdateCameraOrthoSize();
    }
Beispiel #3
0
    void Awake()
    {
        if (instance == null)
        {
            instance = this;
            DontDestroyOnLoad(gameObject);
        }
        else
        {
            Destroy(gameObject);
        }

        CalculateAspect();
    }
    void Awake()
    {
        if(instance == null)
        {
            instance = this;
            DontDestroyOnLoad(gameObject);
        }
        else
        {
            Destroy(gameObject);
        }

        CalculateAspect ();
    }