void Start() { if (this.Connecter == null) { GameObject[] objs = GameObject.FindGameObjectsWithTag("room_connector"); this.Connecter = objs[0].GetComponent <RoomServiceConn>(); } this.TotalCost.OnValueChanged.AddListener((float min, float max) => { TTCostMax.text = "(Current:" + (Mathf.RoundToInt(max) * 10).ToString() + ")"; TTCostMin.text = "(Current:" + (Mathf.RoundToInt(min) * 10).ToString() + ")"; }); this.CardCost.OnValueChanged.AddListener((float min, float max) => { CCMax.text = "(Current:" + (Mathf.RoundToInt(max)).ToString() + ")"; CCMin.text = "(Current:" + (Mathf.RoundToInt(min)).ToString() + ")"; }); setting = ConfigContainer.LoadCfFile(ConfigPath.StreamingAsset).remote; this.Connecter.InitSetup(setting); this.RefetchRoomList(); }