Beispiel #1
0
    /// <summary>
    /// 设置触发器连接对象
    /// </summary>
    /// <param name="args"></param>
    /// <returns></returns>
    public static UserDelegateTriggleLinker SetTriggleLinker(params object[] args)
    {
        UserDelegateTriggleLinker triggleLinker = new UserDelegateTriggleLinker();

        triggleLinker.mTriggles = args;
        for (int i = 0; i < args.Length; i++)
        {
            UserDelegateTriggle triggle = args[i] as UserDelegateTriggle;
            if (triggle != null)
            {
                ///设置触发器的连接者
                triggle.SetTriggleLinker(triggleLinker);
            }
        }
        return(triggleLinker);
    }
Beispiel #2
0
 /// <summary>
 /// 清空触发器的所有信息
 /// </summary>
 public void Clear()
 {
     mactionud      = null;
     mactionud      = null;
     mTriggleLinker = null;
 }
Beispiel #3
0
 public void SetTriggleLinker(UserDelegateTriggleLinker triggleLinker)
 {
     mTriggleLinker = triggleLinker;
 }