コード例 #1
0
ファイル: GuiController.cs プロジェクト: hbloom1783/SRPG-Demo
 void Awake()
 {
     if (instance != null)
     {
         Destroy(gameObject);
     }
     else
     {
         instance = this;
     }
 }
コード例 #2
0
ファイル: GuiController.cs プロジェクト: hbloom1783/SRPG-Demo
 void OnDestroy()
 {
     instance = null;
 }