Check out example codes for "unity c# static monobehaviour". It will help you in understanding the concepts better.

Code Example 1

using UnityEngine;

    public abstract class Singleton<T> : MonoBehaviour where T : Singleton<T>
    {
        public static T instance
        {
            get
            {
                if (_instance == null)
                    _instance = FindObjectOfType<T>();
                return _instance;
            }
        }
        static T _instance;
        public static bool instanceExists
        {
            get { return instance != null; }
        }
        protected virtual void OnDestroy()
        {
            if (instance == this)
            {
                _instance = null;
            }
        }
    }
    
//Also first part of this video:
//https://www.youtube.com/watch?v=hQE8lQk9ikE

Learn ReactJs, React Native from akashmittal.com