public static ManualConnectionVM GetManualConntionVM(ManualConnection mc) { if (ViewModelDict.Keys.Contains(mc)) { return(ViewModelDict[mc] as ManualConnectionVM); } else { ManualConnectionVM vm = GetViewModelFromModel(mc.GetType()) as ManualConnectionVM; if (vm != null) { vm.ManualConn = mc; } ViewModelDict.Add(mc, vm); return(vm); } }
// Use this for initialization void Start() { manualConnection = this.gameObject.GetComponent<ManualConnection>(); manualConnection.OnManualInput += HandleOnServerSelected; }
// Use this for initialization void Start() { manualConnection = this.gameObject.GetComponent <ManualConnection>(); manualConnection.OnManualInput += HandleOnServerSelected; }