Warp traps and tidying up the house
This commit is contained in:
@@ -50,7 +50,7 @@ public class WinZone : MonoBehaviour
|
||||
{
|
||||
blackScreenPanel.SetActive(true);
|
||||
CanvasGroup cg = blackScreenPanel.GetComponent<CanvasGroup>();
|
||||
|
||||
|
||||
// If no CanvasGroup exists, add one
|
||||
if (cg == null) cg = blackScreenPanel.AddComponent<CanvasGroup>();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user