//button event calls public static void EnterLevel(BATTLEMODE mode, string scene) { UnityAction onLoad = delegate() { Logic.Instance.BattleMode = mode; //Logic.Instance.InitAllies(new List<Role>()); //Logic.Instance.InitEnemies(new List<Role>()); Logic.Instance.InitBattle(); }; Logic.Instance.LoadLevel(mode, scene, onLoad); }
public void LoadLevel(BATTLEMODE mode, string scene, UnityAction onLoad) { //QF.LevelLoader }