Exemple #1
0
    private char[,] GetPropBlueprintByType(MiscPropType propType)
    {
        var blueprints = _miscPropBlueprints[propType];

        var index = Random.Range(0, blueprints.Count);

        return(blueprints[index]);
    }
Exemple #2
0
    private List <GameObject> GetPropPrefabByType(MiscPropType propType)
    {
        switch (propType)
        {
        case MiscPropType.Cheese:
            return(new List <GameObject> {
                WorldData.Instance.CheeseTreePrefab
            });

        case MiscPropType.Field:
            return(new List <GameObject>(WorldData.Instance.WheatFieldTiles));

        case MiscPropType.Graveyard:
            return(new List <GameObject>(WorldData.Instance.GraveyardProps));

        default:
            return(null);
        }
    }