Пример #1
0
    public static CaveRenderer newInstance(CaveGeneratorBehaviour behaviour)
    {
        CaveRenderer renderer = ScriptableObject.CreateInstance <CaveRenderer>();

        renderer.setBehaviour(behaviour);
        return(renderer);
    }
 void Awake()
 {
     _generator = new CaveGenerator();
     _renderer  = CaveRenderer.newInstance(this);
 }