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

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

            Destroy(gameObject);
        }