Example #1
0
    void Start()
    {
        allPoints = GetComponent <AllPoints>();

        technologyItens  = GameObject.Find("ItensBuyManager").GetComponent <TechnologyItens>();
        scienceItens     = GameObject.Find("ItensBuyManager").GetComponent <ScienceItens>();
        armyItens        = GameObject.Find("ItensBuyManager").GetComponent <ArmyItens>();
        populationsItens = GameObject.Find("ItensBuyManager").GetComponent <PopulationsItens>();
        energyItens      = GameObject.Find("ItensBuyManager").GetComponent <EnergyItens>();
        foodItens        = GameObject.Find("ItensBuyManager").GetComponent <FoodItens>();
        natureItens      = GameObject.Find("ItensBuyManager").GetComponent <NatureItens>();
        waterItens       = GameObject.Find("ItensBuyManager").GetComponent <WaterItens>();
    }
    private void Start()
    {
        shop = GetComponent <ShopManager>();

        pointsCollect = GameObject.Find("PointsController").GetComponent <PointsCollect>();

        technology = GameObject.Find("ItensBuyManager").GetComponent <TechnologyItens>();
        science    = GameObject.Find("ItensBuyManager").GetComponent <ScienceItens>();
        army       = GameObject.Find("ItensBuyManager").GetComponent <ArmyItens>();
        food       = GameObject.Find("ItensBuyManager").GetComponent <FoodItens>();
        water      = GameObject.Find("ItensBuyManager").GetComponent <WaterItens>();
        population = GameObject.Find("ItensBuyManager").GetComponent <PopulationsItens>();
        nature     = GameObject.Find("ItensBuyManager").GetComponent <NatureItens>();
        energy     = GameObject.Find("ItensBuyManager").GetComponent <EnergyItens>();
    }
Example #3
0
    void Start()
    {
        allPoints = GameObject.Find("PointsController").GetComponent <AllPoints>();
        firstBuy  = GameObject.Find("UpdateWorld").GetComponent <FirstBuy>();
        infoShop  = GetComponent <InfoShopPageController>();

        technology = GameObject.Find("ItensBuyManager").GetComponent <TechnologyItens>();
        science    = GameObject.Find("ItensBuyManager").GetComponent <ScienceItens>();
        army       = GameObject.Find("ItensBuyManager").GetComponent <ArmyItens>();
        food       = GameObject.Find("ItensBuyManager").GetComponent <FoodItens>();
        water      = GameObject.Find("ItensBuyManager").GetComponent <WaterItens>();
        population = GameObject.Find("ItensBuyManager").GetComponent <PopulationsItens>();
        nature     = GameObject.Find("ItensBuyManager").GetComponent <NatureItens>();
        energy     = GameObject.Find("ItensBuyManager").GetComponent <EnergyItens>();
    }
Example #4
0
    void Start()
    {
        //Debug.Log(PlayerPrefs.GetFloat("Difficult"));
        allPoints      = GetComponent <AllPoints>();
        randonDestroy  = GetComponent <RandonDestroy>();
        removePoints   = GetComponent <RemovePointsController>();
        timeController = GameObject.Find("TimeController").GetComponent <TimeController>();
        if (timeController == null)
        {
            Debug.Log("The object 'TimeController' not find in scene");
        }

        worldController = GameObject.Find("LevelManager").GetComponent <WorldController>();
        if (worldController == null)
        {
            Debug.Log("The object 'LevelManager' not find in scene");
        }

        technology = GameObject.Find("ItensBuyManager").GetComponent <TechnologyItens>();
        science    = GameObject.Find("ItensBuyManager").GetComponent <ScienceItens>();
        army       = GameObject.Find("ItensBuyManager").GetComponent <ArmyItens>();
        food       = GameObject.Find("ItensBuyManager").GetComponent <FoodItens>();
        water      = GameObject.Find("ItensBuyManager").GetComponent <WaterItens>();
        population = GameObject.Find("ItensBuyManager").GetComponent <PopulationsItens>();
        nature     = GameObject.Find("ItensBuyManager").GetComponent <NatureItens>();
        energy     = GameObject.Find("ItensBuyManager").GetComponent <EnergyItens>();

        if (PlayerPrefs.GetInt("NewGame") == 1)
        {
            randonDestroy.LotteryNumbers();
            SavePrefabs("Save");
            DeleteData();
            ResetData();
            SavePrefabs("Load");
            SaveData();
        }
        else
        {
            LoadData();
        }
    }
Example #5
0
 void Start()
 {
     science   = GameObject.Find("ItensBuyManager").GetComponent <ScienceItens>();
     allPoints = GameObject.Find("PointsController").GetComponent <AllPoints>();
 }