one last quick bugfix (hopefully)

This commit is contained in:
playinful 2024-03-31 22:49:52 -04:00
parent 0220a3001f
commit 04c69cf7fd

View file

@ -64,6 +64,11 @@ namespace HeavenStudio.Games.Scripts_CatchOfTheDay
if (normalizedBeat >= 1f) Destroy(gameObject);
}
}
void OnDestroy()
{
if (ReelAction != null)
ReelAction.Disable();
}
public int Setup(RiqEntity e, CatchOfTheDay minigame, int? lastLayout = null, int sortingIndex = 0)
{
@ -398,12 +403,7 @@ namespace HeavenStudio.Games.Scripts_CatchOfTheDay
DisplaySprite.sprite = sprite;
}
//int originalSort = _SortingGroup.sortingOrder;
//_SortingGroup.sortingOrder = short.MaxValue;
RenderCamera.Render();
//_SortingGroup.sortingOrder = originalSort;
//_DisplayTexture.alphaIsTransparency = true;
RenderTexture currentRenderTexture = RenderTexture.active;
RenderTexture.active = _RenderTexture;