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(); }
public TrayPrinter() { onclick += new buttonClick(requestHandler); }
private void btnCancle_Click(object sender, EventArgs e) { status = buttonClick.انصراف; }
private void btnOk_Click(object sender, EventArgs e) { status = buttonClick.تایید; }