示例#1
0
    public override void PerformAction()
    {
        Assert.IsNotNull(world);
        Assert.IsNotNull(buildingSelectionPrefab);
        Assert.IsNotNull(buildingPrefab);

        BuildingSelection bSelection = Instantiate(buildingSelectionPrefab);

        bSelection.Init(world, buildingType, buildingPrefab);
    }
    public void CreateSelection()
    {
        BuildingSelection buildingSelection = Object.Instantiate(selectionPrefab);

        buildingSelection.Init(world, bType, buildingPrefab);
    }