コード例 #1
0
 public AppcraftedManager()
 {
     if (instance !=null)
     {
         Debug.LogError ("Cannot have two instances of singleton.");
         return;
     }
     instance = this;
 }
コード例 #2
0
 public AppcraftedManager()
 {
     if (instance != null)
     {
         Debug.LogError("Cannot have two instances of singleton.");
         return;
     }
     instance = this;
 }