LeopotamGroup.Gui.Common.GuiSystem.Awake C# (CSharp) Method

Awake() public method

public Awake ( ) : void
return void
        void Awake()
        {
            var count = FindObjectsOfType<GuiSystem> ().Length;
            if (count > 1) {
                DestroyImmediate (gameObject);
                return;
            }
            _instance = this;

            _lastScreenWidth = -1;
            _lastScreenHeight = -1;

            VirtualToRealScaleFactor = 1f;

            FixScaleFactors ();
        }