forked from moorowl/CameraMode
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMain.cs
More file actions
37 lines (28 loc) · 974 Bytes
/
Main.cs
File metadata and controls
37 lines (28 loc) · 974 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
using System.Linq;
using CameraMode.Capture;
using PugMod;
using UnityEngine;
using Object = UnityEngine.Object;
// ReSharper disable InconsistentNaming
namespace CameraMode {
public class Main : IMod {
public const string Version = "1.0.5";
public const string InternalName = "CameraMode";
public const string DisplayName = "Camera Mode";
internal static AssetBundle AssetBundle { get; private set; }
public void EarlyInit() {
var modInfo = API.ModLoader.LoadedMods.FirstOrDefault(modInfo => modInfo.Handlers.Contains(this));
Debug.Log($"[{DisplayName}] Mod version: {Version}");
AssetBundle = modInfo!.AssetBundles[0];
}
public void Init() {
var gameObject = new GameObject("Camera Mode Managers");
Object.DontDestroyOnLoad(gameObject);
gameObject.AddComponent<CaptureManager>();
Config.Instance.Init();
}
public void Update() { }
public void Shutdown() { }
public void ModObjectLoaded(Object obj) { }
}
}