static void InitScript()
 {
     Script.DefaultOptions.ScriptLoader = new LUAScriptLoader()
     {
         ModulePaths         = YandereNextManager.ModulePaths,
         IgnoreLuaPathGlobal = true
     };
     ScriptInstance = new Script();
     LUAScriptLinking.StartLinking();
     _loaded = true;
 }
Beispiel #2
0
 void OnSceneUnloaded(Scene scene)
 {
     LUAScriptLinking.CallFunction("OnSceneUnloaded", scene.name);
 }
Beispiel #3
0
 void OnSceneLoaded(Scene scene, LoadSceneMode mode)
 {
     LUAScriptLinking.CallFunction("OnSceneLoaded", scene.name, mode);
 }
Beispiel #4
0
 void Update()
 {
     LUAScriptLinking.CallFunction("Update");
 }
Beispiel #5
0
 void Start()
 {
     LUAScriptLinking.CallFunction("Start");
 }
Beispiel #6
0
 void Awake()
 {
     LUAScriptLinking.CallFunction("Awake");
 }