void Jump() { var jump = new CommandJump(_actor); jump.Execute(/*_actor*/); _commandRoster.AddCommand(jump); }
public override void Enter() { base.Enter(); CommandJump cmd = Cmd as CommandJump; Owner.DoJump(cmd); }
void Start() { command = new CommandManager(); command.SetCommand("Left", KeyCode.LeftArrow); command.SetCommand("Right", KeyCode.RightArrow); command.SetCommand("Jump", KeyCode.Z); command.SetCommand("Attack", KeyCode.X); Debug.Log("조작키 Left :" + command.GetCommand("Left")); cmd_Left = new CommandLeft(); cmd_Right = new CommandRight(); cmd_Jump = new CommandJump(); cmd_JumpHold = new CommandJumpHold(); cmd_Attack = new CommandAttack(); bulletFactory.Init(); faceDir = 1; }
/// <summary> /// NOTE : COMMAND 설저 /// </summary> private void SetCommand() { moveC = new CommandMove(); jumpC = new CommandJump(); attackC = new CommandAttack(); }