/// <summary>
        /// Returns a valid UsdPath for the given Unity GameObject, relative to the given root.
        /// For example: obj = /Foo/Bar/Baz, root = /Foo the result will be /Bar/Baz
        /// </summary>
        /// <remarks>
        /// Note that illegal characters are converted into legal characters, so invalid names may
        /// collide in the USD namespace.
        /// </remarks>
        static public string GetPath(UnityEngine.Transform unityObj,
                                     UnityEngine.Transform unityObjRoot)
        {
            // Base case.
            if (unityObjRoot != null && unityObj == null)
            {
                throw new Exception("Expected to find root " + unityObjRoot.name + " but did not.");
            }

            if (unityObj == unityObjRoot)
            {
                return("");
            }

            // Build the path from root to leaf.
            return(GetPath(unityObj.transform.parent, unityObjRoot)
                   + "/" + UnityTypeConverter.MakeValidIdentifier(unityObj.name));
        }
        static StackObject *RemoveTransformPath_6(ILIntepreter __intp, StackObject *__esp, IList <object> __mStack, CLRMethod __method, bool isNewObj)
        {
            CSHotFix.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);
            UnityEngine.Transform transform = (UnityEngine.Transform) typeof(UnityEngine.Transform).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);
            ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
            UnityEngine.AvatarMask instance_of_this_method;
            instance_of_this_method = (UnityEngine.AvatarMask) typeof(UnityEngine.AvatarMask).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);

            instance_of_this_method.RemoveTransformPath(transform);

            return(__ret);
        }
        static StackObject *SetDistanceReferencePoint_17(ILIntepreter __intp, StackObject *__esp, IList <object> __mStack, CLRMethod __method, bool isNewObj)
        {
            CSHotFix.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);
            UnityEngine.Transform transform = (UnityEngine.Transform) typeof(UnityEngine.Transform).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);
            ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
            UnityEngine.CullingGroup instance_of_this_method;
            instance_of_this_method = (UnityEngine.CullingGroup) typeof(UnityEngine.CullingGroup).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);

            instance_of_this_method.SetDistanceReferencePoint(transform);

            return(__ret);
        }
        static StackObject *SetParent_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);
            UnityEngine.Transform @p = (UnityEngine.Transform) typeof(UnityEngine.Transform).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
            UnityEngine.Transform instance_of_this_method = (UnityEngine.Transform) typeof(UnityEngine.Transform).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);

            instance_of_this_method.SetParent(@p);

            return(__ret);
        }
Example #5
0
        static StackObject *SetLocator_0(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);
            UnityEngine.Transform @tran = (UnityEngine.Transform) typeof(UnityEngine.Transform).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
            Main.Combat.UI.HealthBarHUDMonitor instance_of_this_method = (Main.Combat.UI.HealthBarHUDMonitor) typeof(Main.Combat.UI.HealthBarHUDMonitor).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);

            instance_of_this_method.SetLocator(@tran);

            return(__ret);
        }
Example #6
0
        int UnityEngineTransform_m_SetSiblingIndex(RealStatePtr L, int gen_param_count)
        {
            ObjectTranslator translator = this;


            UnityEngine.Transform gen_to_be_invoked = (UnityEngine.Transform)translator.FastGetCSObj(L, 1);


            {
                int _index = LuaAPI.xlua_tointeger(L, 2);

                gen_to_be_invoked.SetSiblingIndex(_index);



                return(0);
            }
        }
Example #7
0
        static StackObject *Find_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.String @n = (System.String) typeof(System.String).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
            UnityEngine.Transform instance_of_this_method = (UnityEngine.Transform) typeof(UnityEngine.Transform).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);

            var result_of_this_method = instance_of_this_method.Find(@n);

            return(ILIntepreter.PushObject(__ret, __mStack, result_of_this_method));
        }
        static StackObject *SetLocalPositionY_3(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.Single @newValue = *(float *)&ptr_of_this_method->Value;

            ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
            UnityEngine.Transform @transform = (UnityEngine.Transform) typeof(UnityEngine.Transform).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);


            UnityGameFrame.Runtime.UnityExtension.SetLocalPositionY(@transform, @newValue);

            return(__ret);
        }
 public override bool Execute(object sender, SkillInstance instance, long delta, long curSectionTime)
 {
     if (curSectionTime < m_StartTime)
     {
         return(true);
     }
     UnityEngine.GameObject obj = sender as UnityEngine.GameObject;
     if (obj == null)
     {
         return(false);
     }
     UnityEngine.Transform child = TriggerUtil.GetChildNodeByName(obj, m_ChildName);
     if (child != null && child.gameObject != null)
     {
         TriggerUtil.SetObjVisible(child.gameObject, m_IsShow);
     }
     return(false);
 }
Example #10
0
        static StackObject *set_localRotation_4(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);
            UnityEngine.Quaternion @value = (UnityEngine.Quaternion) typeof(UnityEngine.Quaternion).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
            UnityEngine.Transform instance_of_this_method = (UnityEngine.Transform) typeof(UnityEngine.Transform).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);

            instance_of_this_method.localRotation = value;

            return(__ret);
        }
Example #11
0
        static StackObject *set_rootBone_7(ILIntepreter __intp, StackObject *__esp, IList <object> __mStack, CLRMethod __method, bool isNewObj)
        {
            CSHotFix.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);
            UnityEngine.Transform @value = (UnityEngine.Transform) typeof(UnityEngine.Transform).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
            UnityEngine.SkinnedMeshRenderer instance_of_this_method = (UnityEngine.SkinnedMeshRenderer) typeof(UnityEngine.SkinnedMeshRenderer).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);

            instance_of_this_method.rootBone = value;

            return(__ret);
        }
Example #12
0
        //
        public UnityEngine.Transform Transform(UnityEngine.Transform unityTransform,
                                               UnityEngine.Vector3 endPosition,
                                               UnityEngine.Quaternion endRotation)
        {
            // Construct the dualquarternions from the transfrom values
            Mathd.DualQuaternion startTransformDualQuat = new Mathd.DualQuaternion(new Mathd.Vector3(unityTransform.position), new Mathd.Quaternion(unityTransform.rotation));
            Mathd.DualQuaternion endTransformDualQuat   = new Mathd.DualQuaternion(new Mathd.Vector3(endPosition), new Mathd.Quaternion(endRotation));

            // Perform the transform
            Mathd.DualQuaternion resultingDualQuat = (endTransformDualQuat * startTransformDualQuat) * endTransformDualQuat.conjugate;

            // Extract transform values
            UnityEngine.Transform resultingTransform = new UnityEngine.GameObject().transform;
            resultingTransform.position = resultingDualQuat.position.toUnityVec3;
            resultingTransform.rotation = resultingDualQuat.rotation.toUnityQuat;

            return(resultingTransform);
        }
Example #13
0
        /** [シングルトン]constructor
         */
        private Audio()
        {
            //サウンドプール。
            this.soundpool = new SoundPool();

            //ボリューム。マスター。
            this.volume_master = new Volume(Config.DEFAULT_VOLUME_MASTER);

            //ボリューム。SE。
            this.volume_se = new Volume(Config.DEFAULT_VOLUME_SE);

            //ボリューム。BGM。
            this.volume_bgm = new Volume(Config.DEFAULT_VOLUME_BGM);

            //ルート。
            this.root_gameobject      = new UnityEngine.GameObject();
            this.root_gameobject.name = "Audio";
            UnityEngine.Transform t_root_transform = this.root_gameobject.GetComponent <UnityEngine.Transform>();
            UnityEngine.GameObject.DontDestroyOnLoad(this.root_gameobject);

            //オーディオソース。SE。
            {
                this.se_audiosource_gameobject      = new UnityEngine.GameObject();
                this.se_audiosource_gameobject.name = "Se";
                this.se_audiosource_gameobject.transform.SetParent(t_root_transform);
                this.se_audiosource_gameobject.AddComponent <UnityEngine.AudioSource>();
                this.se_audiosource_monobehaviour = this.se_audiosource_gameobject.AddComponent <Se_AudioSource_MonoBehaviour>();
                this.se_audiosource_monobehaviour.Initialize(this.volume_master, this.volume_se);
            }

            //オーディオソース。BGM。
            {
                this.bgm_audiosource_gameobject      = new UnityEngine.GameObject();
                this.bgm_audiosource_gameobject.name = "Bgm";
                this.bgm_audiosource_gameobject.transform.SetParent(t_root_transform);
                this.bgm_audiosource_gameobject.AddComponent <UnityEngine.AudioSource>();
                this.bgm_audiosource_gameobject.AddComponent <UnityEngine.AudioSource>();
                this.bgm_audiosource_monobehaviour = this.bgm_audiosource_gameobject.AddComponent <Bgm_AudioSource_MonoBehaviour>();
                this.bgm_audiosource_monobehaviour.Initialize(this.volume_master, this.volume_bgm);
            }

            //フォーカス。
            this.is_focus = false;
        }
Example #14
0
        static int __CreateInstance(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
                if (LuaAPI.lua_gettop(L) == 2 && translator.Assignable <UnityEngine.Transform>(L, 2))
                {
                    UnityEngine.Transform _manager = (UnityEngine.Transform)translator.GetObject(L, 2, typeof(UnityEngine.Transform));

                    FairyGUI.GObjectPool gen_ret = new FairyGUI.GObjectPool(_manager);
                    translator.Push(L, gen_ret);

                    return(1);
                }
            }
            catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
            return(LuaAPI.luaL_error(L, "invalid arguments to FairyGUI.GObjectPool constructor!"));
        }
        static StackObject *CopyTransform_5(ILIntepreter __intp, StackObject *__esp, IList <object> __mStack, CLRMethod __method, bool isNewObj)
        {
            CSHotFix.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);
            UnityEngine.Transform @other = (UnityEngine.Transform) typeof(UnityEngine.Transform).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
            UnityEngine.Transform @tr = (UnityEngine.Transform) typeof(UnityEngine.Transform).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);


            LCL.TransformTool.CopyTransform(@tr, @other);

            return(__ret);
        }
Example #16
0
        public static int RotateAround(IntPtr L)
        {
            int result = 1;
            int count  = LuaDLL.lua_gettop(L);

            if (count != 4)
            {
                LuaStatic.traceback(L, "count not enough");
                LuaDLL.lua_error(L);
                return(result);
            }
            UnityEngine.Transform obj  = LuaStatic.GetObj(L, 1) as UnityEngine.Transform;
            UnityEngine.Vector3   arg1 = (UnityEngine.Vector3)LuaStatic.GetObj(L, 2);
            UnityEngine.Vector3   arg2 = (UnityEngine.Vector3)LuaStatic.GetObj(L, 3);
            Single arg3 = (Single)(double)(LuaStatic.GetObj(L, 4));

            obj.RotateAround(arg1, arg2, arg3);
            return(result);
        }
Example #17
0
        int UnityEngineTransform_m_GetChild(RealStatePtr L, int gen_param_count)
        {
            ObjectTranslator translator = this;


            UnityEngine.Transform gen_to_be_invoked = (UnityEngine.Transform)translator.FastGetCSObj(L, 1);


            {
                int _index = LuaAPI.xlua_tointeger(L, 2);

                UnityEngine.Transform gen_ret = gen_to_be_invoked.GetChild(_index);
                translator.Push(L, gen_ret);



                return(1);
            }
        }
Example #18
0
        int UnityEngineTransform_m_IsChildOf(RealStatePtr L, int gen_param_count)
        {
            ObjectTranslator translator = this;


            UnityEngine.Transform gen_to_be_invoked = (UnityEngine.Transform)translator.FastGetCSObj(L, 1);


            {
                UnityEngine.Transform _parent = (UnityEngine.Transform)translator.GetObject(L, 2, typeof(UnityEngine.Transform));

                bool gen_ret = gen_to_be_invoked.IsChildOf(_parent);
                LuaAPI.lua_pushboolean(L, gen_ret);



                return(1);
            }
        }
Example #19
0
        int UnityEngineTransform_m_Find(RealStatePtr L, int gen_param_count)
        {
            ObjectTranslator translator = this;


            UnityEngine.Transform gen_to_be_invoked = (UnityEngine.Transform)translator.FastGetCSObj(L, 1);


            {
                string _n = LuaAPI.lua_tostring(L, 2);

                UnityEngine.Transform gen_ret = gen_to_be_invoked.Find(_n);
                translator.Push(L, gen_ret);



                return(1);
            }
        }
Example #20
0
        static StackObject *Instantiate_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);
            UnityEngine.Transform @parent = (UnityEngine.Transform) typeof(UnityEngine.Transform).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
            UnityEngine.GameObject @original = (UnityEngine.GameObject) typeof(UnityEngine.GameObject).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);


            var result_of_this_method = UnityEngine.Object.Instantiate <UnityEngine.GameObject>(@original, @parent);

            return(ILIntepreter.PushObject(__ret, __mStack, result_of_this_method));
        }
Example #21
0
        static int _m_GetTransformedBy(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


                UnityEngine.Pose gen_to_be_invoked; translator.Get(L, 1, out gen_to_be_invoked);


                int gen_param_count = LuaAPI.lua_gettop(L);

                if (gen_param_count == 2 && translator.Assignable <UnityEngine.Pose>(L, 2))
                {
                    UnityEngine.Pose _lhs; translator.Get(L, 2, out _lhs);

                    UnityEngine.Pose gen_ret = gen_to_be_invoked.GetTransformedBy(_lhs);
                    translator.Push(L, gen_ret);


                    translator.Update(L, 1, gen_to_be_invoked);


                    return(1);
                }
                if (gen_param_count == 2 && translator.Assignable <UnityEngine.Transform>(L, 2))
                {
                    UnityEngine.Transform _lhs = (UnityEngine.Transform)translator.GetObject(L, 2, typeof(UnityEngine.Transform));

                    UnityEngine.Pose gen_ret = gen_to_be_invoked.GetTransformedBy(_lhs);
                    translator.Push(L, gen_ret);


                    translator.Update(L, 1, gen_to_be_invoked);


                    return(1);
                }
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }

            return(LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Pose.GetTransformedBy!"));
        }
Example #22
0
        int UnityEngineTransform_m_SetPositionAndRotation(RealStatePtr L, int gen_param_count)
        {
            ObjectTranslator translator = this;


            UnityEngine.Transform gen_to_be_invoked = (UnityEngine.Transform)translator.FastGetCSObj(L, 1);


            {
                UnityEngine.Vector3    _position; translator.Get(L, 2, out _position);
                UnityEngine.Quaternion _rotation; translator.Get(L, 3, out _rotation);

                gen_to_be_invoked.SetPositionAndRotation(_position, _rotation);



                return(0);
            }
        }
Example #23
0
        static StackObject *IsDescendantOrSelf_4(ILIntepreter __intp, StackObject *__esp, IList <object> __mStack, CLRMethod __method, bool isNewObj)
        {
            CSHotFix.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);
            UnityEngine.Transform child = (UnityEngine.Transform) typeof(UnityEngine.Transform).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);
            ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
            UnityEngine.Transform father = (UnityEngine.Transform) typeof(UnityEngine.Transform).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);

            var result_of_this_method = UnityEngine.UI.MaskUtilities.IsDescendantOrSelf(father, child);

            __ret->ObjectType = ObjectTypes.Integer;
            __ret->Value      = result_of_this_method ? 1 : 0;
            return(__ret + 1);
        }
Example #24
0
        static int _m_transform_xlua_st_(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);



            try {
                {
                    UnityEngine.Transform __cl_gen_ret = SVMAPI.Camera.transform(  );
                    translator.Push(L, __cl_gen_ret);



                    return(1);
                }
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
        }
Example #25
0
        static StackObject *FindChild_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);
            System.String @childName = (System.String) typeof(System.String).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
            UnityEngine.Transform @transform = (UnityEngine.Transform) typeof(UnityEngine.Transform).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);


            var result_of_this_method = ETModel.GameObjectHelper.FindChild(@transform, @childName);

            return(ILIntepreter.PushObject(__ret, __mStack, result_of_this_method));
        }
Example #26
0
        static StackObject *GetStencilDepth_3(ILIntepreter __intp, StackObject *__esp, IList <object> __mStack, CLRMethod __method, bool isNewObj)
        {
            CSHotFix.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);
            UnityEngine.Transform stopAfter = (UnityEngine.Transform) typeof(UnityEngine.Transform).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);
            ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
            UnityEngine.Transform transform = (UnityEngine.Transform) typeof(UnityEngine.Transform).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);

            var result_of_this_method = UnityEngine.UI.MaskUtilities.GetStencilDepth(transform, stopAfter);

            __ret->ObjectType = ObjectTypes.Integer;
            __ret->Value      = result_of_this_method;
            return(__ret + 1);
        }
Example #27
0
        static StackObject *CenterOn_0(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);
            UnityEngine.Transform @target = (UnityEngine.Transform) typeof(UnityEngine.Transform).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
            global::UICenterOnChild instance_of_this_method = (global::UICenterOnChild)typeof(global::UICenterOnChild).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));

            __intp.Free(ptr_of_this_method);

            instance_of_this_method.CenterOn(@target);

            return(__ret);
        }
        static StackObject *CalculateRelativeRectTransformBounds_8(ILIntepreter __intp, StackObject *__esp, IList <object> __mStack, CLRMethod __method, bool isNewObj)
        {
            CSHotFix.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);
            UnityEngine.Transform @child = (UnityEngine.Transform) typeof(UnityEngine.Transform).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
            UnityEngine.Transform @root = (UnityEngine.Transform) typeof(UnityEngine.Transform).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);


            var result_of_this_method = UnityEngine.RectTransformUtility.CalculateRelativeRectTransformBounds(@root, @child);

            return(ILIntepreter.PushObject(__ret, __mStack, result_of_this_method));
        }
Example #29
0
        public static void SetTransform(UnityEngine.Transform transform, UnityEngine.Transform parent, Matrix4x4 trsMatrix)
        {
            if (!transform)
            {
                return;
            }

#if UNITY_EDITOR
            UnityEditor.Undo.RecordObject(transform, "Move child node to given position");
#endif
            if (parent)
            {
                transform.Set(parent.worldToLocalMatrix * trsMatrix);
            }
            else
            {
                transform.Set(trsMatrix);
            }
        }
        static int _m_Begin_xlua_st_(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);



            int __gen_param_count = LuaAPI.lua_gettop(L);

            try {
                if (__gen_param_count == 3 && translator.Assignable <UnityEngine.GameObject>(L, 1) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && translator.Assignable <UnityEngine.Transform>(L, 3))
                {
                    UnityEngine.GameObject go = (UnityEngine.GameObject)translator.GetObject(L, 1, typeof(UnityEngine.GameObject));
                    float duration            = (float)LuaAPI.lua_tonumber(L, 2);
                    UnityEngine.Transform to  = (UnityEngine.Transform)translator.GetObject(L, 3, typeof(UnityEngine.Transform));

                    TweenTransform __cl_gen_ret = TweenTransform.Begin(go, duration, to);
                    translator.Push(L, __cl_gen_ret);



                    return(1);
                }
                if (__gen_param_count == 4 && translator.Assignable <UnityEngine.GameObject>(L, 1) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && translator.Assignable <UnityEngine.Transform>(L, 3) && translator.Assignable <UnityEngine.Transform>(L, 4))
                {
                    UnityEngine.GameObject go  = (UnityEngine.GameObject)translator.GetObject(L, 1, typeof(UnityEngine.GameObject));
                    float duration             = (float)LuaAPI.lua_tonumber(L, 2);
                    UnityEngine.Transform from = (UnityEngine.Transform)translator.GetObject(L, 3, typeof(UnityEngine.Transform));
                    UnityEngine.Transform to   = (UnityEngine.Transform)translator.GetObject(L, 4, typeof(UnityEngine.Transform));

                    TweenTransform __cl_gen_ret = TweenTransform.Begin(go, duration, from, to);
                    translator.Push(L, __cl_gen_ret);



                    return(1);
                }
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }

            return(LuaAPI.luaL_error(L, "invalid arguments to TweenTransform.Begin!"));
        }
	//---------------------------------------------------------------------------

	#endregion

	//---------------------------------------------------------------------------

	#region Public Member Functions

	//---------------------------------------------------------------------------

	void Start()
	{
		_face = transform.Find("robotG/mainG/head_GEO");
		if(!_face)
		{
			OCLogger.Error("Face of the robot is not found");
		}
	}