// Update is called once per frame
 void Update()
 {
     if (gameManager.GetPlayerSoliderCount() == 0)
     {
         gameManager.playerPlanets.Clear();
     }
 }
Example #2
0
    // Update is called once per frame
    void Update()
    {
        ManagerScript manager = ManagerScript.Instance;

        playerResource.text = FormatNumber(manager.playerResources);
        playerPlanet.text   = FormatNumber(manager.playerPlanets.Count);
        playerSoldier.text  = FormatNumber(manager.GetPlayerSoliderCount());
        playerLevel.text    = FormatNumber(manager.GetPlayerLevel());
        enemyPlanet.text    = FormatNumber(manager.enemyPlanets.Count);
        enemyLevel.text     = FormatNumber(manager.GetEnemyLevel());
    }