private BehaviourCallback FindBehaviour(string tag, LinkedList <BehaviourCallback> lst)
 {
     // 队列中查找
     foreach (BehaviourCallback bc in lst)
     {
         PauseCallback pc = bc as PauseCallback;
         if (pc != null && pc.Tag == tag && !bc.IsFinished)
         {
             return(pc);
         }
     }
     return(null);
 }
        public bool Pause(string tag, float duration)
        {
            // 是否存在
            if (FindBehaviour(tag) != null) // unique tag
            {
                DebugUtils.Log(InfoType.Warning, "duplicated tag: " + tag);
                return(false);
            }
            PauseCallback ec = new PauseCallback(tag, mMaxDuration, duration);

            Insert(ElappsedTime, ec, duration);
            return(true);
        }