Example #1
0
 public void On_Click_SupportStation()
 {
     B_Type            = BuildingGroundType.one_one;
     ConstructionTypes = ConstructionTypes.SupportStation;
     SetRequirements(0, 2, 4);
     CreateBuildingSquare(0, 0, 0);
     CreateBuildingSquare(0, -1, 1);
 }
Example #2
0
 //Create building item clicked on
 public void On_Click_ToolStore()
 {
     B_Type            = BuildingGroundType.one_one;
     ConstructionTypes = ConstructionTypes.ToolStore;
     SetRequirements(0, 0, 0);
     CreateBuildingSquare(0, 0, 0);
     CreateBuildingSquare(0, -1, 1);
 }
Example #3
0
    //Create building item clicked on
    //public void On_Click_TeleportPad()
    //{
    //	B_Type = BuildingGroundType.one_one;
    //	ConstructionTypes = ConstructionTypes.Teleportpad;
    //	SetRequirements(8, 0, 4);
    //	CreateBuildingSquare(0, 0, 0);
    //	CreateBuildingSquare(0, -1, 1);
    //}

    //Create building item clicked on
    public void On_Click_TeleportPad()
    {
        B_Type            = BuildingGroundType.one_one;
        ConstructionTypes = ConstructionTypes.Teleportpad;
        SetRequirements(8, 0, 4);
        CreateBuildingSquare(0, 0, 0);
        //CreateBuildingSquare(1, 0, 0);

        CreateBuildingSquare(0, -1, 1);
        //CreateBuildingSquare(1, -1, 1);
    }
Example #4
0
    public void OnBackClicked()
    {
        if (BuildingSquareList.Count > 0)
        {
            foreach (var i in BuildingSquareList.ToArray())
            {
                BuildingSquareList.Remove(i);
                Destroy(i.Square);
            }
        }

        B_Type = BuildingGroundType.blank;
    }