public void LaunchBullet(short angle) { if (m_bClearScene) { //清场时不能发子弹。 return; } NetCmdBullet ncb = new NetCmdBullet(); ncb.SetCmdType(NetCmdType.CMD_BULLET); ncb.Degree = angle; ncb.LockFishID = m_PlayerMgr.LockedFishID; ncb.LauncherType = SceneRuntime.SceneLogic.PlayerMgr.MySelf.Launcher.LauncherType; Send <NetCmdBullet>(ncb); bulletTick = Utility.GetTickCount(); }
//请求发射子弹 public void LaunchBullet(short angle) { if (m_bClearScene) { //清场时不能发子弹。 return; } NetCmdBullet ncb = new NetCmdBullet(); ncb.SetCmdType(NetCmdType.CMD_BULLET); ncb.Degree = angle; ncb.LockFishID = m_PlayerMgr.LockedFishID; ncb.LauncherType = SceneRuntime.SceneModel.PlayerMgr.MySelf.Launcher.LauncherType; bulletTick = Utility.GetTickCount(); Send <NetCmdBullet>(ncb); bulletTick = Utility.GetTickCount(); //Test /*NetCmdPack pack = new NetCmdPack(); * pack.cmd = ncb; * * SceneRuntime.SceneModel.PlayerMgr.LaunchBullet(pack);*/ }