Exemple #1
0
    private void Awake()
    {
        dataPath = System.IO.Path.Combine(Application.dataPath, "stuff.json");

        stuffPath.Add("Box1", "Prefabs/Box1");
        stuffPath.Add("Box2", "Prefabs/Box2");
        stuffPath.Add("Box3", "Prefabs/Box3");
        stuffPath.Add("Platform3x1", "Prefabs/Platform3x1");
        stuffPath.Add("Platform4x1", "Prefabs/Platform4x1");
        stuffPath.Add("Platform5x1", "Prefabs/Platform5x1");
        stuffPath.Add("Platform6x1", "Prefabs/Platform6x1");
        stuffPath.Add("Platform7x1", "Prefabs/Platform7x1");

        if (instance == null)
        {
            instance = this;
        }

        platformGen = platformGen.GetComponent <PlatformGenerator>();
    }