コード例 #1
0
 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);
     }
 }
コード例 #2
0
 // Use this for initialization
 void Start()
 {
     manualConnection = this.gameObject.GetComponent<ManualConnection>();
     manualConnection.OnManualInput += HandleOnServerSelected;
 }
コード例 #3
0
 // Use this for initialization
 void Start()
 {
     manualConnection = this.gameObject.GetComponent <ManualConnection>();
     manualConnection.OnManualInput += HandleOnServerSelected;
 }