Skip to content

Instantly share code, notes, and snippets.

@kentouemura
Created March 14, 2016 15:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kentouemura/fe7f461c9ff4573dd52e to your computer and use it in GitHub Desktop.
Save kentouemura/fe7f461c9ff4573dd52e to your computer and use it in GitHub Desktop.
移動するコマンドクラス
using UnityEngine;
using System.Collections;
/// <summary>
/// 移動コマンド
/// </summary>
public class MoveCommand : PlayerCommand
{
/// <summary>
/// 移動
/// </summary>
/// <param name="player">Player.</param>
public override void Execute(Player player)
{
player.Move();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment