Skip to content

Instantly share code, notes, and snippets.

@abdelfattahradwan
Created September 20, 2020 05:04
Show Gist options
  • Save abdelfattahradwan/206e37162ee8f59d6f0a2c88457e66df to your computer and use it in GitHub Desktop.
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)
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