コード例 #1
0
ファイル: BackgroundImage.cs プロジェクト: ru-ace/spark
        internal override void NowOffScreen()
        {
            if (ImageLocation == null)
            {
                return;
            }

            if (ImageLocation.DecreaseUsage())
            {
                ImageLocation = null;
            }
        }
コード例 #2
0
        /// <summary>Called when this character goes on screen.</summary>
        public void OffScreen()
        {
            if (Location == null)
            {
                return;
            }

            if (Location.DecreaseUsage())
            {
                Location = null;
            }
        }