Example #1
0
    public static ArcMeshGen Instance()
    {
        if (instance == null)
        {
            instance = GameObject.Find("MeshGen").GetComponent <ArcMeshGen>();
        }

        return(instance);
    }
    // Start is called before the first frame update
    protected override void Start()
    {
        base.Start();

        lsysController = LSystemController.Instance();
        meshgen        = ArcMeshGen.Instance();

        int i = 0;

        foreach (char symbol in lsysController.Symbols)
        {
            lookup.Add(symbol, Materials[i]);
            i++;
        }
    }