Exemplo n.º 1
0
 public static T GetManager <T>() where T : class
 {
     if (typeof(T) == typeof(ConfigManager))
     {
         return(BaseBehaviour.configMgr as T);
     }
     else if (typeof(T) == typeof(TableManager))
     {
         return(BaseBehaviour.tableMgr as T);
     }
     return(BaseBehaviour.GetManager <T>());
 }
Exemplo n.º 2
0
 static int GetManager(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 1);
         string arg0 = ToLua.CheckString(L, 1);
         FirClient.Manager.BaseManager o = BaseBehaviour.GetManager(arg0);
         ToLua.PushObject(L, o);
         return(1);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
Exemplo n.º 3
0
 public static BaseManager GetManager(string managerName)
 {
     return(BaseBehaviour.GetManager(managerName));
 }
Exemplo n.º 4
0
 // 获取manager
 public static T GetManager <T>() where T : class
 {
     return(BaseBehaviour.GetManager <T>());
 }