コード例 #1
0
        public static CallFunc Create(Action <System.Object> callFunc, System.Object selectTarget)
        {
            CallFunc ret = new CallFunc();

            if (ret != null && ret.InitWithFunction(callFunc, selectTarget))
            {
                return(ret);
            }
            return(null);
        }
コード例 #2
0
        public static CallFunc Create(Action <UnityEngine.Transform> callFunc)
        {
            CallFunc ret = new CallFunc();

            if (ret != null && ret.InitWithFunction(callFunc))
            {
                return(ret);
            }
            return(null);
        }
コード例 #3
0
        public static CallFunc Create(Action callFunc)
        {
            CallFunc ret = new CallFunc();

            if (ret != null && ret.InitWithFunction(callFunc))
            {
                return(ret);
            }
            return(null);
        }
コード例 #4
0
        public override CCAction Clone()
        {
            CallFunc ret = new CallFunc();

            if (m_callFunc != null)
            {
                ret.InitWithFunction(m_callFunc);
            }
            if (m_callFuncST != null)
            {
                ret.InitWithFunction(m_callFuncST, m_selectorTarget);
            }
            if (m_callFuncUT != null)
            {
                ret.InitWithFunction(m_callFuncUT);
            }
            return(ret);
        }