コード例 #1
0
 public static TowerSet GetSingleton()
 {
     if (g_singleton == null)
     {
         g_singleton = new TowerSet();
     }
     return(g_singleton);
 }
コード例 #2
0
 public TowerSet()
 {
     g_singleton = this;
     for (int iIndex = 0; iIndex < g_objSignalMode.Length; iIndex++)
     {
         g_objSignalMode[iIndex] = new CCTower();
     }
 }