示例#1
0
    public static void SelectBuilding(SGBuilding b)
    {
        _selectedBuilding = b;
        BuildingParamEditor bpe = buildingParamEditor;

        bpe.SetBuilding(b);
    }
示例#2
0
    public static void UnSelectBuilding()
    {
        _selectedBuilding = null;
        BuildingParamEditor bpe = buildingParamEditor;

        //BuildingParamEditor bpe = GameObject.Find("BuildingParams").GetComponent<BuildingParamEditor>();
        bpe.SetBuilding(null);
    }