Exemple #1
0
 void Start()
 {
     resourceStats = GameObject.Find("Manager").GetComponent <ResorceManager>();
     sphereLevel   = 0;
     FullyUpgraded.SetActive(false);
     CantUpgrade.SetActive(false);
 }
    void Start()
    {
        resourceStats = GameObject.Find("Manager").GetComponent <ResorceManager>();
        BuildPanel.SetActive(false);
        DockPanelStuff.SetActive(false);
        WaterTankPanelStuff.SetActive(false);
        RadioTowerPanelStuff.SetActive(false);
        SolarFarmPanelStuff.SetActive(false);
        TurbinePanelStuff.SetActive(false);
        DropPodAnimalStuff.SetActive(false);

        DockActive          = false;
        TankActive          = false;
        TowerActive         = false;
        SolarFarmActive     = false;
        TurbineActive       = false;
        dropPodAnimalActive = false;

        BuildSpotDock.SetActive(true);
        BuildSpotTank.SetActive(true);
        BuildSpotTower.SetActive(true);
        BuildSpotSolar.SetActive(true);
        BuildSpotTurbine.SetActive(true);
        BuildSpotDropPodAnimal.SetActive(true);

        FishingDockMod.SetActive(false);
        WaterTankMod.SetActive(false);
        RadioTowerMod.SetActive(false);
        SolarFarmMod.SetActive(false);
        TurbineMod.SetActive(false);
        AnimalDropPodMod.SetActive(false);

        dropPodAnimilLanded = false;
        DropPodAText.SetActive(false);
    }
    void Start()
    {
        BuildStats    = GameObject.Find("MainCamera").GetComponent <BuildController>();
        resourceStats = GameObject.Find("Manager").GetComponent <ResorceManager>();

        //SET THE CALANDER
        day    = 1;
        Season = 1;
        year   = 1;
        CalculateSeason();
        CalculateNight();
        CalculateWeather();
        CalculateTemp();
        Calculatemoisture();
        PlayIcon.SetActive(true);
        PauseIcon.SetActive(false);
        SkipIcon.SetActive(false);
    }
Exemple #4
0
        protected String SelectUserCulture(Int32 IdLanguage)
        {
            String UserCulture = String.Empty;

            try
            {
                SQLDatabase DBConnection = new SQLDatabase(ConfigurationManager.ConnectionStrings["dbConnectionString"].ToString());
                DBConnection.Connect();

                ResorceManager ResManager = new ResorceManager(DBConnection);
                DataSet        dsLanguage = null;
                ResManager.SelectLanguage(IdLanguage, out dsLanguage);

                UserCulture = dsLanguage.Tables["tblLanguages"].Rows[0]["Culture"].ToString();
                DBConnection.Disconnect();
            }
            catch (Exception Ex)
            {
                Global.ErrorMessage(Ex, Context);
                return("en-US");
            }

            return(UserCulture);
        }
Exemple #5
0
 void Start()
 {
     resourceStats  = GameObject.Find("Manager").GetComponent <ResorceManager>();
     TerraformStats = GameObject.Find("Dome").GetComponent <Terraform>();
 }
Exemple #6
0
 void Start()
 {
     resourceStats = GameObject.Find("Manager").GetComponent <ResorceManager>();
     RockBase.SetActive(false);
     RockResource.SetActive(true);
 }
 void Start()
 {
     resourceStats = GameObject.Find("Manager").GetComponent <ResorceManager>();
 }