Editor stuff

This commit is contained in:
Starpelly
2022-01-05 19:11:33 -05:00
parent 775fd7e580
commit 576b0d8482
458 changed files with 37611 additions and 15 deletions

View File

@ -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();
}
}
}