Exemple #1
0
        static StackObject *get_SpriteName_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, 1);

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

            var result_of_this_method = instance_of_this_method.SpriteName;

            return(ILIntepreter.PushObject(__ret, __mStack, result_of_this_method));
        }
Exemple #2
0
        static StackObject *set_SpriteName_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 @value = (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.UI.UISprite instance_of_this_method = (UnityEngine.UI.UISprite) typeof(UnityEngine.UI.UISprite).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);

            instance_of_this_method.SpriteName = value;

            return(__ret);
        }
Exemple #3
0
 public void SetSprite(string spriteName)
 {
     UnityEngine.UI.UISprite img = uiObj.transform.FindChild("sprite").GetComponent <UnityEngine.UI.UISprite>();
     img.SetSprite(spriteName, Loader.CreateAssetInfo("ui/atlas/common.ui"));
 }