private void InitialPurview(bool IsMainHost) { PurviewMgr.IsMainHost = IsMainHost; PurviewMgr.RegistSlaveMgObj(tank2.MgPath); if (PurviewMgr.IsMainHost) { camera.Focus(tank1, true); } else { camera.Focus(tank2, true); } }
private void InitailizePurview(int controlIndex) { if (controlIndex == 0) { PurviewMgr.IsMainHost = true; for (int i = 0; i < ships.Length; i++) { if (i != controlIndex) { PurviewMgr.RegistSlaveMgObj(ships[i].MgPath); } } } else { PurviewMgr.IsMainHost = false; PurviewMgr.RegistSlaveMgObj(ships[controlIndex].MgPath); } }