Skip to content

Commit 4efb04e

Browse files
committed
fix(UI): Remove required canvas comp
1 parent 18f154e commit 4efb04e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Assets/JCSUnity/Scripts/UI/JCS_CanvasComp.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ namespace JCSUnity
1616
/// actually inherit the class `JCS_Canvas`.
1717
/// </summary>
1818
[RequireComponent(typeof(JCS_Canvas))]
19-
public class JCS_CanvasComp<T> : MonoBehaviour
19+
public class JCS_CanvasComp : MonoBehaviour
2020
{
2121
/* Variables */
2222

@@ -62,7 +62,7 @@ public Action<JCS_Canvas> onHideFade
6262

6363
protected virtual void Awake()
6464
{
65-
this.mCanvas = this.GetComponent<JCS_Canvas>();
65+
mCanvas = GetComponent<JCS_Canvas>();
6666
}
6767

6868
public virtual bool IsShown() => mCanvas.IsShown();

0 commit comments

Comments
 (0)