-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy pathModApiBehaviour.cs
More file actions
38 lines (30 loc) · 867 Bytes
/
ModApiBehaviour.cs
File metadata and controls
38 lines (30 loc) · 867 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
using System;
using System.Runtime.InteropServices;
using System.Security.Policy;
using MSCLoader;
using TommoJProductions.ModApi.Attachable;
using UnityEngine;
namespace TommoJProductions.ModApi
{
/// <summary>
/// used for mod api loader starting coroutine.
/// </summary>
public class LevelManager : MonoBehaviour
{
// Written, 11.09.2022
private void OnLevelWasLoaded(int level)
{
Debug.Log("[ModAPI.Level] A level was loaded: " + Application.loadedLevelName);
switch (level)
{
case 3: //GAME
ModClient.refreshCache();
ES2.Init();
StartCoroutine(ModApiLoader.loadModApi());
break;
case 1: // MAIN MENU
break;
}
}
}
}