예제 #1
0
        private void Load(GameViewSize size)
        {
            var previous = _asset;
            var current  = GameViewScreenAsset.Load(size.baseText);

            if (previous == null && current == null)
            {
                return;
            }
            if (previous != null && previous.Equals(current))
            {
                return;
            }

            _asset = current;
            changed?.Invoke(_asset?.data);
        }
예제 #2
0
 private void OnResolutionChanged(GameViewSize size) => this.TryUpdateRect();