示例#1
0
 private void Start()
 {
     successCount = 0;
     strikeCount  = 0;
     SuccessCounter.SetLabel(successCount);
     StrikeCounter.SetLabel(strikeCount);
 }
示例#2
0
 void Start()
 {
     scorePlayerRobots = scorePlayerMonsters = 1;
     matchTimer        = MatchLength;
     Timer.SetLabel(MatchLength);
     UpdateScore();
 }
示例#3
0
 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);
 }
示例#4
0
        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();
        }
示例#5
0
    void UpdateStrings()
    {
        if (IsRight)
        {
            RightLeft.SetLabel("right");
        }
        else
        {
            RightLeft.SetLabel("left");
        }

        if (IsFront)
        {
            FrontBack.SetLabel("front");
        }
        else
        {
            FrontBack.SetLabel("back");
        }
    }
示例#6
0
    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);
        }
    }
示例#7
0
        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);
            }
        }
示例#8
0
 void UpdateScore()
 {
     ScoreRobots.SetLabel(scorePlayerRobots);
     ScoreMonsters.SetLabel(scorePlayerMonsters);
 }
示例#9
0
 public void UpdateDisplay(string msg, ControlButtons btn)
 {
     TooltipLabel.SetLabel(msg);
 }
示例#10
0
 void Start()
 {
     CharacterName.text = LiveSession.PlayerData.Name;
     Balance.SetLabel(LiveSession.PlayerData.Balance.ToString());
     ServiceDays.SetLabel(LiveSession.PlayerData.ServiceDays.ToString());
 }
示例#11
0
 void Start()
 {
     currentHitPoints = StartingHitPoints;
     HullStatusUI.SetLabel(currentHitPoints.ToString("0"));
 }