public void registerCommand(ActionCommandBasis cmd)
 {
     //Debug.LogFormat("Registered:{0}, {1}",cmd.GetType().ToString(),cmd.Owner.name);
     if (!isrun && cmd.Owner.CanRegisterCommand) {
         CommandQueue.push(cmd);
         cmd.Owner.CanRegisterCommand = false;
     }
     //cmd.Owner.IsRegisteredCommand = true;
 }
 public void removeCommand(ActionCommandBasis cmd)
 {
     if (!isrun) CommandQueue.Remove(cmd);
 }
 public bool hasRegistered(ActionCommandBasis cmd)
 {
     return CommandQueue.Contains(cmd);
 }