Пример #1
0
 void Start()
 {
     if (bc == null)
     {
         //DontDestroyOnLoad(gameObject);
         bc = this;
     }
     else
     {
         if (bc != this)
         {
             Destroy(gameObject);
         }
     }
 }
    void Start()
    {
        populateCrew();
        getMine.Init();
        globalTerraformingProgression = 0;
        power = 0;
        hours = 7;
        mapGenerator.GenerateMap(); //generates a map of specified width and height
        mapTilesArray = mapGenerator.tiles;
        pathfinder.Init();
        tilePositions = mapGenerator.getPositions(); //loads in the positions of each tile
        tiles         = mapGenerator.getTiles();     //loads in the tile gameobjects
        crewUI.Start();
        buttonInitialiser = crewButton.GetComponent <buttonClick>();
        buttonInitialiser.panelInit();
        buttonInitialiser = inventoryButton.GetComponent <buttonClick>();
        buttonInitialiser.panelInit();
        System.Random tempRND = new System.Random();


        mapGenerator.addNeighbours();
    }
Пример #3
0
 public TrayPrinter()
 {
     onclick += new buttonClick(requestHandler);
 }
Пример #4
0
 public TrayPrinter()
 {
     onclick += new buttonClick(requestHandler);
 }
Пример #5
0
 private void btnCancle_Click(object sender, EventArgs e)
 {
     status = buttonClick.انصراف;
 }
Пример #6
0
 private void btnOk_Click(object sender, EventArgs e)
 {
     status = buttonClick.تایید;
 }