Created
September 20, 2020 05:04
-
-
Save abdelfattahradwan/206e37162ee8f59d6f0a2c88457e66df to your computer and use it in GitHub Desktop.
The View script from the UI management system YouTube video tutorial (https://youtu.be/rdXC2om16lo)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
public abstract class View : MonoBehaviour | |
{ | |
public abstract void Initialize(); | |
public virtual void Hide() => gameObject.SetActive(false); | |
public virtual void Show() => gameObject.SetActive(true); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment