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

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