예제 #1
0
    public static ForestRenderer newInstance(ForestGeneratorBehaviour behaviour)
    {
        ForestRenderer renderer = ScriptableObject.CreateInstance <ForestRenderer>();

        renderer.setBehaviour(behaviour);
        return(renderer);
    }
예제 #2
0
 private void setBehaviour(ForestGeneratorBehaviour dungeonGeneratorBehaviour)
 {
     _behavior = dungeonGeneratorBehaviour;
 }
예제 #3
0
 private ForestRenderer(ForestGeneratorBehaviour behaviour)
 {
     _behavior = behaviour;
 }