void Awake() { if (instance == null) { instance = this; DontDestroyOnLoad(gameObject); } else { Destroy(gameObject); } }
internal void SaveLevel() { File.WriteAllText(CurrentFileName, CurrentLevelData.Serialize()); }