Initialize game with one script

This commit is contained in:
Starpelly
2022-01-03 17:42:43 -05:00
parent 4c83f7fec0
commit 775fd7e580
32 changed files with 2283 additions and 9446 deletions

View File

@ -0,0 +1,26 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
namespace RhythmHeavenMania.Editor
{
public class Editor : MonoBehaviour
{
private Initializer Initializer;
[Header("Rect")]
[SerializeField] private RenderTexture ScreenRenderTexture;
[SerializeField] private RawImage Screen;
private void Start()
{
Initializer = GetComponent<Initializer>();
GameManager.instance.GameCamera.targetTexture = ScreenRenderTexture;
GameManager.instance.CursorCam.targetTexture = ScreenRenderTexture;
Screen.texture = ScreenRenderTexture;
}
}
}

View File

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 28c29f0a107b3e14bb0493419464c89f
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant: