Ejemplo n.º 1
0
 // Use this for initialization
 void Start()
 {
     moneyLibrary = LibraryManager.instance.get <MoneyLibrary>();
     lastUpdate   = Time.time;
     StartCoroutine(ScoreUpdater());
     score              = moneyLibrary.getMoney();
     displayScore       = score;
     scoreTextMesh.text = "$" + (displayScore / 100.0f).ToString("0.00"); //Write it to the UI
 }
Ejemplo n.º 2
0
 public void Start()
 {
     if (!started)
     {
         started      = true;
         display      = GetComponent <IngredientSelectedDisplay>();
         moneyLibrary = LibraryManager.instance.get <MoneyLibrary>();
         ingredientInventoryLibrary = LibraryManager.instance.get <IngredientInventoryLibrary>();
         buyButton.clicked         += buyItem;
         moneyLibrary.moneyChanged += updateEnableBuyButton;
     }
 }
Ejemplo n.º 3
0
 private void Start()
 {
     moneyLibrary = LibraryManager.instance.get <MoneyLibrary>();
     moneyLibrary.moneyChanged += setMoneyText;
     setMoneyText(moneyLibrary.getMoney());
 }