sinmai-mods/Singleplayer/Main/patch_GameMainObject.cs
2024-08-08 13:32:25 +07:00

30 lines
704 B
C#

// ReSharper disable CheckNamespace
// ReSharper disable InconsistentNaming
using MonoMod;
using UnityEngine;
namespace Main;
public class patch_GameMainObject : GameMainObject
{
[MonoModIgnore]
private Transform rightMonitor;
private extern void orig_Start();
private void Start()
{
orig_Start();
var mainCamera = Camera.main;
if (mainCamera == null)
{
return;
}
var position = mainCamera.gameObject.transform.position;
mainCamera.gameObject.transform.position = new Vector3(-540f, position.y, position.z);
rightMonitor.transform.localScale = Vector3.zero;
}
}