Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Observer : MonoBehaviour {
- #region Singletone
- private static Observer _instance;
- public static Observer Instance
- {
- get
- {
- if (!_instance)
- {
- _instance = FindObjectOfType(typeof(Observer)) as Observer;
- if (_instance == null)
- {
- Debug.Log("Error!");
- }
- }
- return _instance;
- }
- }
- #endregion
- public delegate void GivePoints(int value);
- public static event GivePoints OnGivePoints;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement