mirror of
https://github.com/muskit/H3VR-TNH-Quality-of-Life-Improvements.git
synced 2026-06-02 20:24:26 -07:00
many shit (survived an SSD failure, plz push more)
This commit is contained in:
@@ -0,0 +1,38 @@
|
||||
using UnityEngine;
|
||||
using FistVR;
|
||||
|
||||
namespace TNHQoLImprovements
|
||||
{
|
||||
class TNHInfo : MonoBehaviour
|
||||
{
|
||||
private GameObject holdCounter;
|
||||
private GameObject tokenCounter;
|
||||
|
||||
public void Start()
|
||||
{
|
||||
if (MeatKitPlugin.cfgShowHolds.Value)
|
||||
holdCounter = Instantiate<GameObject>(MeatKitPlugin.bundle.LoadAsset<GameObject>("HoldCounter"), transform);
|
||||
if (MeatKitPlugin.cfgShowTokens.Value)
|
||||
tokenCounter = Instantiate<GameObject>(MeatKitPlugin.bundle.LoadAsset<GameObject>("TokenCounter"), transform);
|
||||
|
||||
}
|
||||
|
||||
public void PlayPos()
|
||||
{
|
||||
if (holdCounter != null)
|
||||
holdCounter.transform.localPosition = new Vector3(-333, 0, -450);
|
||||
|
||||
if (tokenCounter != null)
|
||||
tokenCounter.transform.localPosition = new Vector3(333, 0, -450);
|
||||
}
|
||||
|
||||
public void GameOverPos()
|
||||
{
|
||||
if (holdCounter != null)
|
||||
holdCounter.transform.localPosition = new Vector3(-250, 0, 0);
|
||||
|
||||
if (tokenCounter != null)
|
||||
tokenCounter.transform.localPosition = new Vector3(250, 0, 0);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user