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.
19 lines
513 B
19 lines
513 B
4 years ago
|
using AX.InputSystem;
|
||
|
using UnityEngine;
|
||
|
/// <summary>
|
||
|
/// 下车命令
|
||
|
/// </summary>
|
||
|
public class GetOffCommand : Command
|
||
|
{
|
||
|
public static GetOffCommand Instance = new GetOffCommand();
|
||
|
|
||
|
public override void Execute(long gameObjID, CmdArgs arg)
|
||
|
{
|
||
|
base.Execute(gameObjID, arg);
|
||
|
SkillArgs args = arg as SkillArgs;
|
||
|
GameObject go = EntitiesManager.Instance.GetEntityByID(args.GameObjectID);
|
||
|
CarSkill skill = go.GetComponent<CarSkill>();
|
||
|
skill.GetOff(4);
|
||
|
}
|
||
|
}
|