Exemple #1
0
    public void displayInfo()
    {
        InfoClicked controller = InfoClicked.getInstance();

        controller.show();

        controller.setTitle(this.gameObject.name);
        controller.setDesc(getDesc());
    }
Exemple #2
0
    public void displayInfo()
    {
        InfoClicked controller = InfoClicked.getInstance();

        controller.show();

        controller.setTitle(this.gameObject.name);
        controller.setDesc("Used to move items between structures");
    }
Exemple #3
0
    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);
    }