示例#1
0
        private void InitialPurview(bool IsMainHost)
        {
            PurviewMgr.IsMainHost = IsMainHost;
            PurviewMgr.RegistSlaveMgObj(tank2.MgPath);

            if (PurviewMgr.IsMainHost)
            {
                camera.Focus(tank1, true);
            }
            else
            {
                camera.Focus(tank2, true);
            }
        }
示例#2
0
 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);
     }
 }