示例#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);
        }