void Awake()
 {
     instance = this;
     if (this.IsValidity)
     {
         this.Setting();
     }
 }
Exemple #2
0
        private IEnumerator SetTopMost()
        {
            while (true)
            {
                yield return(new WaitForSeconds(this.LoopTopMost.Interval));

                if (this.LoopTopMost.Validity)
                {
                    WindowController.SetToTopMost();
                }
            }
        }
Exemple #3
0
        private void Setting()
        {
            if (Application.isEditor || Screen.fullScreen || !(Application.platform == RuntimePlatform.WindowsPlayer))
            {
                return;
            }

            int x = 0, y = 0;

            CommandLineHelper.GetIntValue(this.keys.posX, out x);
            CommandLineHelper.GetIntValue(this.keys.posY, out y);
            WindowController.TryMoveWindow(x, y, 1000, 60);

            var topmost = false;

            if (CommandLineHelper.GetBoolValue(this.keys.topmost, out topmost) && topmost)
            {
                WindowController.SetToTopMost();

                this.coroutine = StartCoroutine(this.SetTopMost());
            }
        }