예제 #1
0
 public static LichKing GetInstance()
 {
     if (LichKing.instance == null)
     {
         lock (_lock)
         {
             instance = new LichKing();
         }
     }
     return(LichKing.instance);
 }
예제 #2
0
        static void Main(string[] args)
        {
            Client.emulation();

            var k = LichKing.GetInstance();

            Director   dc   = new Director();
            OrcBuilder buli = new OrcBuilder();

            dc.CreatePlayerBase(buli);
            Base bs = buli.GetBase();

            Console.WriteLine(bs.ToString());

            Pandaren BrewMaster  = new Pandaren("Brewmaster", 22, 14, 15, 29, 40);
            Hero     EarthMaster = BrewMaster.Clone();
        }