Example #1
0
        void Awake()
        {
            if (Instance == null)
            {
                Instance = this;
                return;
            }

            Destroy(gameObject);
        }
Example #2
0
        private void Awake()
        {
            if (Instance == null)
            {
                Instance      = this;
                thoughtBubble = GetComponent <ThoughtBubble>();
                return;
            }

            Destroy(gameObject);
        }