Compare commits
3 Commits
v3.1.1-rc2
...
023602e364
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
023602e364 | ||
|
|
dde47af2d8 | ||
|
|
8d7d08b99e |
@@ -12,10 +12,10 @@ jobs:
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: http://MonBianG.lan:3000/actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
||||
uses: http://MonBianG.lan:3000/action/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
||||
|
||||
- name: Setup .NET
|
||||
uses: http://MonBianG.lan:3000/actions/setup-dotnet@v4.3.0
|
||||
uses: http://MonBianG.lan:3000/action/setup-dotnet@v4.3.0
|
||||
with:
|
||||
dotnet-version: 8.0.x
|
||||
|
||||
@@ -27,7 +27,7 @@ jobs:
|
||||
|
||||
# 使用 Gitea Release Action 创建 Release
|
||||
- name: Create Release
|
||||
uses: http://MonBianG.lan:3000/actions/gitea-release-action@main
|
||||
uses: http://MonBianG.lan:3000/action/gitea-release-action@main
|
||||
with:
|
||||
# 使用推送的标签名作为版本号
|
||||
tag: ${{ github.ref_name }}
|
||||
|
||||
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