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

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

            Destroy(gameObject);
        }