mirror of
https://github.com/RHeavenStudio/HeavenStudio.git
synced 2025-06-12 21:47:39 +02:00
Editor stuff
This commit is contained in:
@ -10,17 +10,32 @@ namespace RhythmHeavenMania.Editor
|
||||
{
|
||||
private Initializer Initializer;
|
||||
|
||||
[SerializeField] private Canvas MainCanvas;
|
||||
|
||||
[Header("Rect")]
|
||||
[SerializeField] private RenderTexture ScreenRenderTexture;
|
||||
[SerializeField] private RawImage Screen;
|
||||
|
||||
[Header("Components")]
|
||||
[SerializeField] private Timeline Timeline;
|
||||
|
||||
private void Start()
|
||||
{
|
||||
Initializer = GetComponent<Initializer>();
|
||||
|
||||
MainCanvas.gameObject.SetActive(false);
|
||||
print("d");
|
||||
}
|
||||
|
||||
public void Init()
|
||||
{
|
||||
GameManager.instance.GameCamera.targetTexture = ScreenRenderTexture;
|
||||
GameManager.instance.CursorCam.targetTexture = ScreenRenderTexture;
|
||||
Screen.texture = ScreenRenderTexture;
|
||||
|
||||
MainCanvas.gameObject.SetActive(true);
|
||||
|
||||
Timeline.Init();
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user