Skip to content
Snippets Groups Projects
Commit f0ba7a2c authored by Marco Zimmer's avatar Marco Zimmer
Browse files

fixes for android build, Beware wrong WorldList

parent 49ae19a8
No related branches found
No related tags found
No related merge requests found
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System;
using UnityEngine;
public static class StageStatic
......@@ -50,6 +51,9 @@ public static StageErrorStruct error {
// TODO! generate at buildtime
private static List<string> GenerateWorldList()
{
#if UNITY_EDITOR
_Worlds = new List<string>();
string world = "World";
......@@ -67,6 +71,10 @@ private static List<string> GenerateWorldList()
}
}
}
#else
_Worlds = new List<string> {"TreeWorld", "RiverWorld"};
Debug.Log("WorldList might be incomplete or incorrect!");
#endif
return _Worlds;
}
......
using System;
using System.Collections.Generic;
using UnityEngine;
#if UNITY_EDITOR
using UnityEditor;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment