// Update is called once per frame void Update() { if (timeStockPriceLastSet + timeBetweenPriceUpdates < Time.time) { if (isStockPriceVariable) { PickAndSetNewStockPrice(); } uiController.UpdateStockPriceDisplay(); timeStockPriceLastSet = Time.time; } if (Input.GetKeyDown(KeyCode.P)) { CleanUpAfterPlay(); DoBeforeEachPlay(); } if (waitingForPlayerEntry) { if (Input.GetKeyDown(KeyCode.A)) { SetWaitingForPlayerEntry(false); InstantiateBattler(Faction.Shorts, false); soundMgr.Stop(); soundMgr.soundPlayerEntersTheFray.Play(); } else if (Input.GetKeyDown(KeyCode.D)) { SetWaitingForPlayerEntry(false); InstantiateBattler(Faction.Longs, false); soundMgr.Stop(); soundMgr.soundPlayerEntersTheFray.Play(); } } }