Esempio n. 1
0
 private void Start()
 {
     StartCoroutine(DeleteAfter4Min());
     if (Instances == null)
     {
         Instances = new List <TradableMoveableNPC>(0);
     }
     Instances.Add(this);
     AddToSingleton();
     while (Trade == null)
     {
         Pair temp = TradeTables[Random.Range(0, TradeTables.Length)];
         if (temp.Chance / 100 > Random.Range(0f, 1f))
         {
             Trade = temp.Trades.GenerateRandomTrade();
         }
     }
     WantedItemDisplay.SetActive(true);
     WantedItemImage.sprite = Trade.WantedItem.Item.DisplayImage;
     DoneWithTradingIcon.SetActive(false);
 }
Esempio n. 2
0
 public void UsedUpTrades()
 {
     DoneWithTradingIcon.SetActive(true);
     TradesAreComplete = true;
 }