Exemple #1
0
    public void JsonLoad()
    {
        foreach (GameObject item in allObjects)
        {
            Destroy(item);
        }

        allObjects.Clear();

        ObjectInfoSaveLoad loadedClass = JSONSerialization.Load <ObjectInfoSaveLoad>();

        SpawnWithData(loadedClass);
    }