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

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

            Destroy(gameObject);
        }