Skip to content

Commit

Permalink
added null check
Browse files Browse the repository at this point in the history
added null check to FrameSkipUI
  • Loading branch information
ChildoftheBeast authored Aug 6, 2021
1 parent f087859 commit b8471e7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Emission.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public class Emission : UdonSharpBehaviour

private void Start()
{
if (UpdateRealtimeGI) FrameSkipUI.SetActive(true);
if (UpdateRealtimeGI && FrameSkipUI != null) FrameSkipUI.SetActive(true);
if (!isQuest) InitPC();
if (ScreenMesh == null) ScreenMesh = gameObject.GetComponent<MeshRenderer>();
if (SharedMerial)
Expand Down Expand Up @@ -167,7 +167,7 @@ private void UpdateFeild(string _str)

private void InitPC()
{
if (UpdateRealtimeGI) FrameSkipFeild.interactable = true;
if (UpdateRealtimeGI && FrameSkipUI != null) FrameSkipFeild.interactable = true;
}
}
}

0 comments on commit b8471e7

Please sign in to comment.