Пример #1
0
 private void Start()
 {
     stats = GameObject.Find("Scripts").GetComponent <statystyki>();
     GUIPlanetOperations = GameObject.Find("Interface").GetComponent <GUIPlanetOperations>();
     structures.Add(new ListStructures(1, "Space Base", 25, 0, "Space Base gives more place +1 for max recruited admirals."));
     structures.Add(new ListStructures(2, "Scout", 10, 0, "Scout can find the better allies."));
 }
Пример #2
0
 private void Start()
 {
     if (SceneManager.GetActiveScene().name != "Menu")
     {
         staty = GameObject.Find("spaceship").GetComponent <statystyki>();
         if (staty.LoadedScene <= 0)
         {
             SetRangeScene(0, 7);
         }
         else if (staty.LoadedScene >= 1 && staty.LoadedScene <= 4)
         {
             SetRangeScene(0, 12);
         }
         else if (staty.LoadedScene == 5)
         { // scenes with enemies
             SetRangeScene(16, 18);
         }
         else if (staty.LoadedScene >= 6 && enemy == true)
         { // scenes without enemies
             SetRangeScene(0, 16);
         }
         else if (staty.LoadedScene >= 6 && enemy == false)
         {
             SetRangeScene(0, 18);
         }
     }
 }
Пример #3
0
 private void Start()
 {
     stats               = GameObject.Find("Scripts").GetComponent <statystyki>();
     GUIOverview         = GameObject.Find("Interface").GetComponent <GUIOverview>();
     GUIPlanetOperations = GameObject.Find("Interface").GetComponent <GUIPlanetOperations>();
     path.text           = stats.Get_String_Data_From("Admiral_Avatar");
     GUIPlanetOperations.SetAvatar(path.text, "Admiral_Avatar", Avatar);
 }
Пример #4
0
 private void Start()
 {
     stats                     = GameObject.Find("Scripts").GetComponent <statystyki>();
     GUIOverview               = GameObject.Find("Interface").GetComponent <GUIOverview>();
     GUIPlanetOperations       = GameObject.Find("Interface").GetComponent <GUIPlanetOperations>();
     AllianceDataInput[2].text = stats.Get_String_Data_From("Alliance_Avatar");
     GUIPlanetOperations.SetAvatar(AllianceDataInput[2].text, "Alliance_Avatar", Avatar);
     GetAllianceData();
 }
Пример #5
0
 private void Start()
 {
     SetPageID(0);
     stats               = GameObject.Find("Scripts").GetComponent <statystyki>();
     ScoutProposition    = GetComponent <ScoutProposition>();
     MembersList         = GetComponent <MembersList>();
     GUIoper             = GameObject.Find("Interface").GetComponent <GUIOperations>();
     GUIPlanetOperations = GameObject.Find("Interface").GetComponent <GUIPlanetOperations>();
     Work();
 }
Пример #6
0
 private void Start()
 {
     GUIOverview = GameObject.Find("Interface").GetComponent <GUIOverview>();
     staty       = GameObject.Find("Scripts").GetComponent <statystyki>();
     boxes.Add(new ListBoxes(1, "Metal", 250, 10));
     boxes.Add(new ListBoxes(2, "Crystal", 250, 10));
     boxes.Add(new ListBoxes(3, "Deuter", 250, 10));
     boxes.Add(new ListBoxes(4, "Metal", 1000, 30));
     boxes.Add(new ListBoxes(5, "Crystal", 1000, 30));
     boxes.Add(new ListBoxes(6, "Deuter", 1000, 30));
 }
Пример #7
0
 private void Start()
 {
     staty = GameObject.Find("Scripts").GetComponent <statystyki>();
     GUIPlanetOperations = GameObject.Find("Interface").GetComponent <GUIPlanetOperations>();
     lasers.Add(new ListLasers(0, "RED", 5, 0, true));
     lasers.Add(new ListLasers(1, "GREEN", 5, 1, false));
     lasers.Add(new ListLasers(2, "BLUE", 5, 1, false));
     lasers.Add(new ListLasers(3, "WHITE", 5, 2, false));
     lasers.Add(new ListLasers(4, "PURPLE", 5, 2, false));
     lasers.Add(new ListLasers(5, "WHITE-RED", 5, 2, false));
     lasers.Add(new ListLasers(6, "GREEN-DARK GREEN", 5, 3, false));
 }
Пример #8
0
    private void Start()
    {
        stats = GameObject.Find("Scripts").GetComponent <statystyki>();
        GUIPlanetOperations = GameObject.Find("Interface").GetComponent <GUIPlanetOperations>();

        buildings.Add(new ListBuildings(0, "METAL MINE", "Each level of metal mine gives +5/30 sec income metal.", 24, 13, 0, 5, 0, 1.2f, 1));
        buildings.Add(new ListBuildings(1, "CRYSTAL MINE", "Each level of crystal mine gives +5/30 sec income crystal.", 26, 17, 0, 5, 0, 1.2f, 1));
        buildings.Add(new ListBuildings(2, "DEUTER SINTETIZER", "Each level of deuter sintetizer gives +5/30 sec income deuter.", 31, 23, 0, 5, 0, 1.2f, 1));
        buildings.Add(new ListBuildings(3, "LABORATORY", "Each level laboratory gives more researches to learn.", 75, 100, 45, 0, 0, 1.8f, 1));
        buildings.Add(new ListBuildings(4, "HANGAR", "Each level of hangar gives more ships and lasers to buy.", 100, 50, 75, 0, 0, 1.8f, 1));
        buildings.Add(new ListBuildings(5, "METAL STORE", "Each level of metal store gives +1000 free space of magazine.", 100, 0, 0, 0, 1000, 1.5f, 1));
        buildings.Add(new ListBuildings(6, "CRYSTAL STORE", "Each level of crystal store gives +1000 free space of magazine.", 75, 50, 0, 0, 1000, 1.5f, 1));
        buildings.Add(new ListBuildings(7, "DEUTER STORE", "Each level of deuter store gives +1000 free space of magazine.", 75, 50, 50, 0, 1000, 1.5f, 1));
        buildings.Add(new ListBuildings(8, "TERRAFORMER", "Each level of terraformer gives +15 free space of planet to build new buildings.", 0, 450, 600, 0, 0, 1.5f, 1));
        CheckButtons();
    }
Пример #9
0
 private void Start()
 {
     #region Start
     GUIoper               = GameObject.Find("Interface").GetComponent <GUIOperations>();
     Ads                   = GameObject.Find("Scripts").GetComponent <Ads>();
     stats                 = GameObject.Find("Scripts").GetComponent <statystyki>();
     on_off_cost[0]        = GameObject.Find("Cost");
     on_off_cost[1]        = GameObject.Find("CostAntymatery");
     txtMetalCost          = GameObject.Find("txtMetalInformationBuyer").GetComponent <Text>();
     txtCrystalCost        = GameObject.Find("txtCrystalInformationBuyer").GetComponent <Text>();
     txtDeuterCost         = GameObject.Find("txtDeuterInformationBuyer").GetComponent <Text>();
     txtAntymateries       = GameObject.Find("txtAntymaterylInformationBuyer").GetComponent <Text>();
     txtSubjectName        = GameObject.Find("txtSubjectNameInformationBuyer").GetComponent <Text>();
     txtSubjectDescription = GameObject.Find("txtDescriptionInformationBuyer").GetComponent <Text>();
     Image                 = GameObject.Find("imgInformationBuyer").GetComponent <Image>();
     #endregion
 }
Пример #10
0
 private void Start()
 {
     if (SceneManager.GetActiveScene().name == "Planet")
     {
         staty = GameObject.Find("Scripts").GetComponent <statystyki>();
         GUIPlanetOperations = GameObject.Find("Interface").GetComponent <GUIPlanetOperations>();
     }
     ships.Add(new ListShips(0, "Light Hunter", "Life: 1 \nChance drop antymatery: 5% \nConsumption: 5 deuter \nSteer: 9 \nMax lasers: 3", 1, 0.05, 5, 10, 5.0f, 9, 3.0f, true)); // (id, nazwa, opis, zycie, sznasadropu w double, szansadropu w int, koszt, posiadanie)
     ships.Add(new ListShips(1, "Light Hunter", "Life: 1 \nChance drop antymatery: 5% \nConsumption: 5 deuter \nSteer: 9 \nMax lasers: 3", 1, 0.05, 5, 10, 5.0f, 9, 3.0f, false));
     ships.Add(new ListShips(2, "Light Hunter", "Life: 1 \nChance drop antymatery: 5% \nConsumption: 5 deuter \nSteer: 9 \nMax lasers: 3", 1, 0.05, 5, 10, 5.0f, 9, 3.0f, false));
     ships.Add(new ListShips(3, "Heavy Hunter", "Life: 2 \nChance drop antymatery: 10% \nConsumption: 10 deuter \nSteer: 11 \nMax lasers: 4", 2, 0.10, 10, 25, 10f, 11, 4.0f, false));
     ships.Add(new ListShips(4, "Heavy Hunter", "Life: 2 \nChance drop antymatery: 10% \nConsumption: 10 deuter \nSteer: 11 \nMax lasers: 4", 2, 0.10, 10, 25, 10f, 11, 4.0f, false));
     ships.Add(new ListShips(5, "Heavy Hunter", "Life: 2 \nChance drop antymatery: 10% \nConsumption: 10 deuter \nSteer: 11 \nMax lasers: 4", 2, 0.10, 10, 25, 10f, 11, 4.0f, false));
     ships.Add(new ListShips(6, "Crusher", "Life: 3 \nChance drop antymatery: 15% \nConsumption: 15 deuter \nSteer: 14 \nMax lasers: 5", 3, 0.15, 15, 50, 15f, 14, 5.0f, false));
     ships.Add(new ListShips(7, "Crusher", "Life: 3 \nChance drop antymatery: 15% \nConsumption: 15 deuter \nSteer: 14 \nMax lasers: 5", 3, 0.15, 15, 50, 15f, 14, 5.0f, false));
     ships.Add(new ListShips(8, "Crusher", "Life: 3 \nChance drop antymatery: 15% \nConsumption: 15 deuter \nSteer: 14 \nMax lasers: 5", 3, 0.15, 15, 50, 15f, 14, 5.0f, false));
     ships.Add(new ListShips(9, "Balcon Triple Heavy", "Life: 1 \nChance drop antymatery: 5% \nConsumption: 5 deuter \nSteer: 10 \nMax lasers: 3", 1, 0.05, 5, 15, 5f, 10, 3.0f, false));
 }
Пример #11
0
 private void Start()
 {
     stats      = GameObject.Find("spaceship").GetComponent <statystyki>();
     animator   = GetComponent <Animator>();
     textToShow = GetComponent <Text>();
 }
Пример #12
0
 private void Start()
 {
     stats = GameObject.Find("Scripts").GetComponent <statystyki>();
     GUIPlanetOperations = GameObject.Find("Interface").GetComponent <GUIPlanetOperations>();
 }
Пример #13
0
 private void Start()
 {
     staty         = GameObject.Find("spaceship").GetComponent <statystyki>();
     GUIOperations = GameObject.Find("Interface").GetComponent <GUIOperations>();
     healthBar     = GameObject.Find("player_life").GetComponent <SpriteRenderer>();
 }
Пример #14
0
 private void Start()
 {
     staty         = GameObject.Find("spaceship").GetComponent <statystyki>();
     controlCamera = GameObject.Find("Main Camera").GetComponent <ControlCamera>();
     GUIOperations = GameObject.Find("spaceship").GetComponent <GUIOperations>();
 }
Пример #15
0
 private void Start()
 {
     staty = GameObject.Find("spaceship").GetComponent <statystyki>();
     SetShipRandomSprite();
 }