public void Execute() { var tmpScene = CSceneManager.Instance.CurScene as CBattleScene; if (tmpScene != null) { BaseNPC target = tmpScene.GetNpcByUID(targetUID); //CSceneManager.Instance. switch (commandType) { case EntityCommandType.Move: if (this.val1 == 90) { target.MoveTo(target.Position + new Vector3(1, 0, 0)); } else if (this.val1 == 270) { target.MoveTo(target.Position - new Vector3(1, 0, 0)); } break; case EntityCommandType.Cast: break; case EntityCommandType.Use: break; case EntityCommandType.Target: break; default: break; } } }