mirror of
https://gitea.tendokyu.moe/beerpsi/sinmai-mods.git
synced 2024-12-02 19:27:18 +01:00
30 lines
704 B
C#
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;
|
|
}
|
|
} |