Skip to content

Commit da5ecf7

Browse files
authored
Create PanelOpener
1 parent 6cbf05b commit da5ecf7

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

PanelOpener

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
using System.Collections;
2+
using System.Collections.Generic;
3+
using UnityEngine;
4+
5+
public class PanelOpener : MonoBehaviour
6+
{
7+
public GameObject Panel;
8+
9+
public void openPanel()
10+
{
11+
if(Panel != null)
12+
{
13+
Panel.SetActive(true);
14+
}
15+
}
16+
}

0 commit comments

Comments
 (0)