//수류탄 움직임 네트웍으로 전송하기 public void Grenade_Send_Data() { if (Game_Script.GameOver_Check) { return; } if (Explosion_State != EXPLOSION_STATE.IDEL) { return; } ByteData Send_Buffer = new ByteData(128, 0); Send_Buffer.InPutByte((byte)RELAY_PROTOCOL.GRENADE_MOVE); Send_Buffer.InPutByte(OJ_Name); Send_Buffer.InPutByte(User_ID); Send_Buffer.InPutByte((byte)Gun_Type); Send_Buffer.InPutByte(transform.position); Send_Buffer.InPutByte(transform.rotation.eulerAngles); Net_Script.Send_PTP_Data(Send_Buffer); }
public void Send_ObtainGameItem_Data() { if (Game_Script.GameOver_Check) { return; } ByteData Send_Buffer = new ByteData(128, 0); Send_Buffer.InPutByte((byte)RELAY_PROTOCOL.OBTAINITEM_MOVE); Send_Buffer.InPutByte((byte)CreatedIndex); Send_Buffer.InPutByte(Tr.position); Send_Buffer.InPutByte(Tr.rotation.eulerAngles); Net_Script.Send_PTP_Data(Send_Buffer); }