예제 #1
0
 void Start()
 {
     fps.Init();
     colors.Init(this); cells.Init(this);
     board.Init(this); over.Init(this);
     ready.Init(this); score.Resets();
     board.Render(); ready.Enable();
 }
예제 #2
0
 static int Init(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 1);
         Fps obj = (Fps)ToLua.CheckObject <Fps>(L, 1);
         obj.Init();
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }