コード例 #1
0
 public override void Awake()
 {
     if (Instance == null)
     {
         Instance = this;
     }
     else
     {
         throw new System.Exception("Can't have multiple instance of the same script.");
     }
 }
コード例 #2
0
 public override void End()
 {
     Instance = null;
 }