Example #1
0
 public static Soul GetInstance(string name)
 {
     if (_instance == null)
     {
         lock (_syncRoot)
         {
             if (_instance == null)
             {
                 _instance = new Soul(name);
             }
         }
     }
     return(_instance);
 }
Example #2
0
 public void Create(string name)
 {
     Soul = Soul.GetInstance(name);
 }