Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
 public void MoveToNPC(SceneEntity hero, OnCatchNPCDel del = null)
 {
     MoveToNPC(hero, 1.5f, del);
 }