We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a7fa492 commit 9f8907fCopy full SHA for 9f8907f
Assets/JCSUnity/Scripts/UI/JCS_CanvasComp.cs
@@ -11,6 +11,7 @@ public class JCS_CanvasComp<T> : MonoBehaviour
11
{
12
/* Variables */
13
14
+ // The canvas this component to control.
15
protected JCS_Canvas mCanvas = null;
16
17
/* Setter & Getter */
@@ -22,8 +23,8 @@ protected virtual void Awake()
22
23
this.mCanvas = this.GetComponent<JCS_Canvas>();
24
}
25
- public void Show() => mCanvas.Show();
26
- public void Hide() => mCanvas.Hide();
27
- public void ToggleVisibility() => mCanvas.ToggleVisibility();
+ public virtual void Show() => mCanvas.Show();
+ public virtual void Hide() => mCanvas.Hide();
28
+ public virtual void ToggleVisibility() => mCanvas.ToggleVisibility();
29
30
0 commit comments