Exemple #1
0
    public static void AnimSazhi(int n1, int n2)
    {
        Transform t = UIAPI.ShowEffect(UIAPI.gCanvas, "AnimSazhi");

        AnimImage[] ms = t.GetComponentsInChildren <AnimImage>();

        ms[0].Play(4, n1 - 1);
        ms[1].Play(4, n2 - 1);
    }
Exemple #2
0
 static int ShowEffect(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         UnityEngine.Transform arg0 = (UnityEngine.Transform)ToLua.CheckUnityObject(L, 1, typeof(UnityEngine.Transform));
         string arg1             = ToLua.CheckString(L, 2);
         UnityEngine.Transform o = UIAPI.ShowEffect(arg0, arg1);
         ToLua.Push(L, o);
         return(1);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }