Compare commits
2 Commits
v3.1.1-rc3
...
023602e364
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
023602e364 | ||
|
|
dde47af2d8 |
20
Patches/LogLeverAngle.cs
Normal file
20
Patches/LogLeverAngle.cs
Normal file
@@ -0,0 +1,20 @@
|
||||
using HarmonyLib;
|
||||
using stick.plugins.playermanager;
|
||||
|
||||
using Steamworks;
|
||||
using UnityEngine;
|
||||
|
||||
[HarmonyPatch(typeof(HostLeverHandler), "Update")]
|
||||
class LogLeverAngle
|
||||
{
|
||||
static Vector3 lastForward = Vector3.zero;
|
||||
public static void PostFix()
|
||||
{
|
||||
Vector3 currentForward = PlayerManager.HostLeverHandler.lever.transform.forward;
|
||||
if (currentForward != lastForward)
|
||||
{
|
||||
Debug.Log("Current Lever Angle: " + currentForward);
|
||||
lastForward = currentForward;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user