private void Start() { successCount = 0; strikeCount = 0; SuccessCounter.SetLabel(successCount); StrikeCounter.SetLabel(strikeCount); }
void Start() { scorePlayerRobots = scorePlayerMonsters = 1; matchTimer = MatchLength; Timer.SetLabel(MatchLength); UpdateScore(); }
void UpdateView() { CaveName.text = caveMission.CaveName; Payment.SetLabel(caveMission.Mission.Reward.ToString()); CaveSize.SetLabel(caveMission.CaveSize.ToString()); AvailableMaterials.SetLabel(caveMinerals); Mission.SetLabel("\n" + caveMission.Mission.Description); }
public void DiscoveredSection() { var sections = caveSectionColliders.Select(x => x.GetComponent <SectionBounds>()).ToArray(); var exploredCount = sections.Count(x => x.HasBeenMapped); ExploredPercentage = (float)exploredCount / (float)sections.Count() * 100f; PercentageExplored.SetLabel(ExploredPercentage.ToString("0")); LiveSession.CurrentMission.CheckCompletion(); }
void UpdateStrings() { if (IsRight) { RightLeft.SetLabel("right"); } else { RightLeft.SetLabel("left"); } if (IsFront) { FrontBack.SetLabel("front"); } else { FrontBack.SetLabel("back"); } }
private void EndGame() { string theWinner = ""; theWinner = scorePlayerMonsters > scorePlayerRobots ? "THE MONSTERS" : "THE ROBOTS"; theWinner = scorePlayerMonsters == scorePlayerRobots ? "NO ONE... ITS A TIE" : theWinner; WinnerText.SetLabel(theWinner); FinalCanvas.SetActive(true); foreach (var p in Players) { p.SetActive(false); } }
public void OnPlayerKilled(PlayerBot player) { if (playersInGame.Count(x => x.IsAlive) == 1) { foreach (var p in playersInGame) { p.GetComponent <PlayerInput>().DisableInputFor(1f); } var winner = playersInGame.First(x => x.IsAlive); winner.GetComponent <EffectManager>().TriggerConfetti(); EndPanel.SetActive(true); EndGameText.SetLabel(winner.PlayerId, winner.Country.ToString().ToUpper()); winner.GetComponent <BotUIController>().PlayerKilled(); Camera.ZoomTo(winner.transform); } }
void UpdateScore() { ScoreRobots.SetLabel(scorePlayerRobots); ScoreMonsters.SetLabel(scorePlayerMonsters); }
public void UpdateDisplay(string msg, ControlButtons btn) { TooltipLabel.SetLabel(msg); }
void Start() { CharacterName.text = LiveSession.PlayerData.Name; Balance.SetLabel(LiveSession.PlayerData.Balance.ToString()); ServiceDays.SetLabel(LiveSession.PlayerData.ServiceDays.ToString()); }
void Start() { currentHitPoints = StartingHitPoints; HullStatusUI.SetLabel(currentHitPoints.ToString("0")); }