// 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(); } }
// 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); }