public void displayInfo() { InfoClicked controller = InfoClicked.getInstance(); controller.show(); controller.setTitle(this.gameObject.name); controller.setDesc(getDesc()); }
public void displayInfo() { InfoClicked controller = InfoClicked.getInstance(); controller.show(); controller.setTitle(this.gameObject.name); controller.setDesc("Used to move items between structures"); }
private void buildingClicked(BuildingManager.structureData data) { clickDetector.overlayClicked = true; print("clicked building icon ! " + data.name); InfoClicked preview = Scene_Controller.getInstance().buildPreview.GetComponent <InfoClicked>(); preview.show(); preview.setTitle(data.name); preview.setDesc(data.description); preview.setPrice(data.cost); preview.setData(data); }