Exemplo n.º 1
0
 // Use this for initialization
 private void Awake()
 {
     filter   = "";
     instance = this;
     if (EntireGameManager.getInstance().playerData.name == "吉米")
     {
         GameObject enterNameObj = Instantiate(EnterNameUI, GameObject.Find("Canvas").transform);
         enterNameObj.transform.SetAsLastSibling();
     }
 }
Exemplo n.º 2
0
 // Start is called before the first frame update
 void Start()
 {
     if (RoomListManager.RLM == null)
     {
         RoomListManager.RLM = this;
     }
     else
     {
         if (RoomListManager.RLM != this)
         {
             Destroy(this.gameObject);
         }
     }
     DontDestroyOnLoad(this.gameObject);
 }