|
|
@@ -1,6 +1,7 @@ |
|
|
|
using System; |
|
|
|
using IllusionPlugin; |
|
|
|
using UnityEngine; |
|
|
|
using uREPL; |
|
|
|
|
|
|
|
namespace TestMod |
|
|
|
{ |
|
|
@@ -10,7 +11,7 @@ namespace TestMod |
|
|
|
|
|
|
|
public string Name { get; } = "TestPlugin"; |
|
|
|
|
|
|
|
public string Version { get; } = "2"; |
|
|
|
public string Version { get; } = "v0.0.0a"; |
|
|
|
|
|
|
|
public void OnApplicationQuit() |
|
|
|
{ |
|
|
@@ -19,8 +20,9 @@ namespace TestMod |
|
|
|
|
|
|
|
public void OnApplicationStart() |
|
|
|
{ |
|
|
|
//throw new NotImplementedException(); |
|
|
|
UnityEngine.Debug.Log("Hello World!"); |
|
|
|
Debug.Log("Hello World!"); |
|
|
|
RuntimeCommands.Register<object>("Log", LogCommand,"Write a message to Player.log (Runtime version)"); |
|
|
|
Debug.Log("TestPlugin startup complete"); |
|
|
|
} |
|
|
|
|
|
|
|
public void OnFixedUpdate() |
|
|
@@ -46,7 +48,13 @@ namespace TestMod |
|
|
|
public void OnUpdate() |
|
|
|
{ |
|
|
|
//throw new NotImplementedException(); |
|
|
|
UnityEngine.Debug.Log("Baby's first mod injection"); |
|
|
|
//UnityEngine.Debug.Log("Baby's first mod injection"); |
|
|
|
} |
|
|
|
|
|
|
|
/* Log command method. This called by uREPL when the Log <object> command is called from RCX */ |
|
|
|
private void LogCommand(object msg) |
|
|
|
{ |
|
|
|
Debug.Log(msg); |
|
|
|
} |
|
|
|
} |
|
|
|
} |