예제 #1
0
파일: UITiles.cs 프로젝트: Kheru-Lyke/rush
 private void OnDestroy()
 {
     if (this == instance)
     {
         instance = null;
     }
 }
예제 #2
0
파일: UITiles.cs 프로젝트: Kheru-Lyke/rush
        private void Awake()
        {
            if (instance)
            {
                Destroy(gameObject);
                return;
            }

            instance = this;
        }