コード例 #1
0
ファイル: StageDriver.cs プロジェクト: Beanalby/LudumDare33
 public void Awake()
 {
     if (_instance != null) {
         Debug.LogError("Already have a StageDriver " + _instance);
         GameObject.Destroy(this.gameObject);
         return;
     }
     _instance = this;
 }
コード例 #2
0
ファイル: StageDriver.cs プロジェクト: Beanalby/LudumDare33
 public void Awake()
 {
     if (_instance != null)
     {
         Debug.LogError("Already have a StageDriver " + _instance);
         GameObject.Destroy(this.gameObject);
         return;
     }
     _instance = this;
 }