static public int loadTexture(IntPtr l) { try { Lui.LFrameAnimation self = (Lui.LFrameAnimation)checkSelf(l); self.loadTexture(); pushValue(l, true); return(1); } catch (Exception e) { return(error(l, e)); } }
void makeFramAnim(GameObject anim, LRenderElement elem) { LFrameAnimation comFram = anim.GetComponent <LFrameAnimation>(); if (comFram != null) { comFram.path = elem.path; comFram.fps = elem.fs; comFram.loadTexture(); comFram.play(); } }