示例#1
0
 // remove instance if destroyed
 private void OnDestroy()
 {
     if (_instance == this)
     {
         _instance = null;
     }
 }
 private void Start()
 {
     _inventoryUI = InventoryUIController.Instance;
     if (QuestInventoryUIController.Instance != null)
     {
         _questLogUI = QuestInventoryUIController.Instance;
     }
 }
示例#3
0
 private void Awake()
 {
     if (_instance != null)
     {
         Destroy(gameObject);
     }
     else
     {
         _instance = this;
     }
 }