Ejemplo n.º 1
0
 static public int play(IntPtr l)
 {
     try {
         Lui.LFrameAnimation self = (Lui.LFrameAnimation)checkSelf(l);
         self.play();
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
Ejemplo n.º 2
0
        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();
            }
        }