downfastcommand.cs

来自「嵌入式程序」· CS 代码 · 共 42 行

CS
42
字号
using System;
using DiamondPet.LogicLayer.GameStateRunLogic;
using DiamondPet.UserLayer;

namespace DiamondPet.LogicLayer.GameStateRunLogic.DownFastCommand
{
	/// <summary>
	/// DownFastCommand 的摘要说明。
	/// </summary>
	public class PauseFastCommand : Command
	{
		/// <summary>
		/// 慢落状态
		/// </summary>
		private DownFast downFast;

		public PauseFastCommand()
		{}

		#region 转入暂停状态
		/// <summary>
		/// 暂停状态
		/// </summary>
		/// <param name="df"></param>
		public PauseFastCommand(DownFast df)
		{
			downFast = df as DownFast;
		}
		#endregion

		#region 转到正常暂停状态
		/// <summary>
		/// 转到正常暂停状态
		/// </summary>
		public override void ExecuteCommand()
		{
			downFast.runStateManager.ChangeState( RunStateManager.NORMALPAUSE);
		}
		#endregion
	}
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?