Esempio n. 1
0
        private void OnDestroy()
        {
            deeplinkHandler = null;

            if (ReferenceEquals(s_deeplinkReceiver, this))
            {
                s_deeplinkReceiver = null;
            }
        }
Esempio n. 2
0
        private void Awake()
        {
            if (!s_isAutoInitSelf)
            {
                Debug.LogError(ErrorMessage);
                Destroy(this);
                return;
            }

            if (s_deeplinkReceiver != null)
            {
                Debug.LogError("Duplicate instances of " + GetType().Name, this);
                gameObject.name += " (Duplicate)";
                return;
            }
            s_deeplinkReceiver = this;
        }