コード例 #1
0
 public static AddonLoader GetInstance(MinecraftHandler mc)
 {
     // DoubleLock
     if (instance == null)
     {
         lock (m_lock)
         {
             if (instance == null)
             {
                 instance = new AddonLoader(mc);
             }
         }
     }
     instance.LoadAddons(mc);
     return(instance);
 }
コード例 #2
0
ファイル: AddonLoader.cs プロジェクト: BGCX261/zma-svn-to-git
 public static AddonLoader GetInstance(MinecraftHandler mc)
 {
     // DoubleLock
     if (instance == null)
     {
         lock (m_lock)
         {
             if (instance == null)
             {
                 instance = new AddonLoader(mc);
             }
         }
     }
     instance.LoadAddons(mc);
     return instance;
 }