public void MoveToNPC(SceneEntity hero, float deltaSpace, OnCatchNPCDel del = null) { OperaMove2NPC action = new OperaMove2NPC(Owner); action.deltaSpace = deltaSpace; action.del = del; if (!action.IsCanActive()) { return; } action.targetHero = hero; Owner.DispatchEvent(ControllerCommand.SetActiveAction, action); }
public void MoveToNPC(SceneEntity hero, OnCatchNPCDel del = null) { MoveToNPC(hero, 1.5f, del); }