Example #1
0
        protected internal virtual void Update()
        {
            LProcess process = LSystem.GetProcess();

            if (process != null)
            {
                this._halfWidth  = process.GetWidth() / 2;
                this._halfHeight = process.GetHeight() / 2;
            }
            else if (LSystem.viewSize != null)
            {
                this._halfWidth  = LSystem.viewSize.GetWidth() / 2;
                this._halfHeight = LSystem.viewSize.GetHeight() / 2;
            }
        }