示例#1
0
 private void Awake()
 {
     if (instance != null)
     {
         Debug.LogWarning("More than one bit-world inventory.");
     }
     instance = this;
 }
示例#2
0
 // Tries to subscribe to inventory delegate until it is found
 IEnumerator SubscribeToInventory()
 {
     while (true)
     {
         BWInventory inv = BWInventory.Instance;
         if (inv != null)
         {
             inv.InventoryUpdateCall += UpdateText;
             break;
         }
         yield return(null);
     }
 }