private void Send_C2B_Shoot(Vector3 pos, Vector3 eulerAngles) { C2B_Shoot c2BShoot = new C2B_Shoot(); c2BShoot.PX = Convert.ToInt32(pos.x * Tank.m_coefficient); c2BShoot.PY = Convert.ToInt32(pos.y * Tank.m_coefficient); c2BShoot.PZ = Convert.ToInt32(pos.z * Tank.m_coefficient); c2BShoot.RX = Convert.ToInt32(eulerAngles.x * Tank.m_coefficient); c2BShoot.RY = Convert.ToInt32(eulerAngles.y * Tank.m_coefficient); c2BShoot.RZ = Convert.ToInt32(eulerAngles.z * Tank.m_coefficient); SessionComponent.Instance.Session.Send(c2BShoot); }
private void Send_C2B_Shoot() { C2B_Shoot c2BShoot = new C2B_Shoot(); SessionComponent.Instance.Session.Send(c2BShoot); }