Пример #1
0
        /// <summary>
        /// 背景の設定を行います。(キーが変わっている場合のみ設定します)
        /// </summary>
        private void TrySetBackgroundKey(string key)
        {
            if (Background == null)
            {
                return;
            }

            /*if (this.prevBackgroundKey == key)
             * {
             *  return;
             * }*/

            // 背景エフェクトの作成。
            var effectInfo = new EffectInfo(key, null);
            var effect     = effectInfo.LoadBackground();

            Background.AddEntity(effect);
            this.prevBackgroundKey = key;
        }