You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
983 B
36 lines
983 B
4 years ago
|
using UnityEngine;
|
||
|
using System.Collections;
|
||
|
using System;
|
||
|
using AX.MessageSystem;
|
||
|
|
||
|
namespace AX.InputSystem
|
||
|
{
|
||
|
/// <summary>
|
||
|
/// 鼠标左键单击寻路命令
|
||
|
/// </summary>
|
||
|
public class PathFindingCommand : Command
|
||
|
{
|
||
|
public static readonly PathFindingCommand Instance = new PathFindingCommand();
|
||
|
public override void Execute(long gameObjID, CmdArgs arg)
|
||
|
{
|
||
|
base.Execute(gameObjID, arg);
|
||
|
|
||
|
MessageDispatcher.SendMessage("PATH_FINDING_COMMAND",arg);
|
||
|
}
|
||
|
}
|
||
|
/// <summary>
|
||
|
/// 被困人员寻路命令
|
||
|
/// </summary>
|
||
|
public class TrappedPathFindingCommand : Command
|
||
|
{
|
||
|
public static readonly TrappedPathFindingCommand Instance = new TrappedPathFindingCommand();
|
||
|
public override void Execute(long gameObjID, CmdArgs arg)
|
||
|
{
|
||
|
base.Execute(gameObjID, arg);
|
||
|
|
||
|
MessageDispatcher.SendMessage("TRAPPED_PATH_FINDING_COMMAND", arg);
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|