Example #1
0
        public bool ExcuteExReal(Transform Frame, System.Action onFinish)
        {
            bool started = false;

            if (HasGuidNow())
            {
                GuideStepData now;
                if (!GuideManager.Instance.GetStep(m_StepCurrentId, out now))
                {
                    return(false);
                }
                if (!Frame.name.Contains(now.view))
                {
                    return(false);
                }
                if (string.IsNullOrEmpty(now.target_path))
                {
                    //if (now.guide_id == now.rollback_id) m_StepStack.Push(now);
                    if (m_StepStack.Count > 0)
                    {
                        m_StepStack.Pop();
                    }
                    m_StepStack.Push(now);
                    ExcuteCurrentStep(null, null, onFinish);
                }
                else
                {
                    Transform target = null;
                    target = Frame.Find(now.target_path);
                    if (target == null)
                    {
                        EB.Debug.LogWarning("Cant find obj for{0} for {1}", now.target_path, m_StepCurrentId);
                        return(false);
                    }
                    Transform target_panel = Frame.parent.Find(now.parameter);
                    //if(now.guide_id==now.rollback_id)m_StepStack.Push(now);
                    if (m_StepStack.Count > 0)
                    {
                        m_StepStack.Pop();
                    }
                    m_StepStack.Push(now);
                    m_CurrentFrame = Frame;
                    ExcuteCurrentStep(target.gameObject, target_panel != null ? target_panel.gameObject : null, onFinish);
                }
                started = true;
            }
            return(started);
        }
Example #2
0
 private void PutHUDInPool(PlayerHeadBarHud hud)
 {
     hud.mDMono.transform.SetParent(mDMono.transform);
     hud.mDMono.gameObject.CustomSetActive(false);
     hudsPool.Push(hud);
     hud.recycleCallback = null;
 }
Example #3
0
 private void PutHUDInPool(FightingHeadBarHud hud)
 {
     hud.mDMono.transform.SetParent(m_Container);
     hud.mDMono.gameObject.SetActive(false);
     hudsPool.Push(hud);
     hud.recycleCallback = null;
 }
Example #4
0
 private void PutNewHUDInPool(CombatFloatFontUIHUD hud)
 {
     if (hud != null && hud.mDMono != null && newHudsPool != null)
     {
         hud.Clean();
         hud.mDMono.transform.localPosition = new Vector3(2000, 2000, 0);
         newHudsPool.Push(hud);
     }
 }
Example #5
0
        static StackObject *Push_2(ILIntepreter __intp, StackObject *__esp, IList <object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject *ptr_of_this_method;
            StackObject *__ret = ILIntepreter.Minus(__esp, 2);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            global::DynamicMonoILRObjectAdaptor.Adaptor @obj = (global::DynamicMonoILRObjectAdaptor.Adaptor) typeof(global::DynamicMonoILRObjectAdaptor.Adaptor).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
            EB.Collections.Stack <global::DynamicMonoILRObjectAdaptor.Adaptor> instance_of_this_method = (EB.Collections.Stack <global::DynamicMonoILRObjectAdaptor.Adaptor>) typeof(EB.Collections.Stack <global::DynamicMonoILRObjectAdaptor.Adaptor>).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);

            instance_of_this_method.Push(@obj);

            return(__ret);
        }
Example #6
0
        static StackObject *Push_1(ILIntepreter __intp, StackObject *__esp, IList <object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject *ptr_of_this_method;
            StackObject *__ret = ILIntepreter.Minus(__esp, 2);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            System.Object @obj = (System.Object) typeof(System.Object).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
            EB.Collections.Stack <System.Object> instance_of_this_method = (EB.Collections.Stack <System.Object>) typeof(EB.Collections.Stack <System.Object>).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);

            instance_of_this_method.Push(@obj);

            return(__ret);
        }
Example #7
0
 private void PutHUDInPool(CombatDamagesHUD hud)
 {
     hud.Clean();
     hud.mDMono.transform.localPosition = new Vector3(2000, 2000, 0);
     hudsPool.Push(hud);
 }