示例#1
0
 private void OnDestroy()
 {
     if (Instance == this)
     {
         Instance = null;
     }
 }
示例#2
0
        private void Awake()
        {
            Debug.Assert(Instance == null, "You are starting another Picus.Coroutine.Manager. It should be singleton.", true);

            if (Instance == null)
            {
                Instance = this;
            }
        }