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

            if (ReferenceEquals(s_deeplinkReceiver, this))
            {
                s_deeplinkReceiver = null;
            }
        }
Ejemplo 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;
        }