Beispiel #1
0
 /// <summary>
 /// 获取士兵池管理器的单例对象
 /// </summary>
 /// <returns>SoldierMgr</returns>
 public static SoldierPoolMgr getInstance()
 {
     if (g_instance == null)
     {
         g_instance = new SoldierPoolMgr();
     }
     return g_instance;
 }
Beispiel #2
0
 /// <summary>
 /// 获取士兵池管理器的单例对象
 /// </summary>
 /// <returns>SoldierMgr</returns>
 public static SoldierPoolMgr getInstance()
 {
     if (g_instance == null)
     {
         g_instance = new SoldierPoolMgr();
     }
     return(g_instance);
 }