This file contains hidden or 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 Unity.Netcode; | |
using UnityEngine; | |
/* | |
Generic classes for the use of singleton | |
there are 3 types: | |
- MonoBehaviour -> for the use of singleton to normal MonoBehaviours | |
- NetworkBehaviour -> for the use of singleton that uses the NetworkBehaviours | |
- Persistent -> when we need to make sure the object is not destroyed during the session | |
*/ |