using System; using UnityEngine; using XUtliPoolLib; namespace XMainClient { internal class Process_PtcG2C_CorrectPosition { public static void Process(PtcG2C_CorrectPosition roPtc) { XEntity entityConsiderDeath = XSingleton.singleton.GetEntityConsiderDeath(roPtc.Data.uid); bool flag = entityConsiderDeath != null; if (flag) { Vector3 pos; pos = new Vector3((float)roPtc.Data.pos_x / 100f, (float)roPtc.Data.pos_y / 100f, (float)roPtc.Data.pos_z / 100f); Vector3 face = XSingleton.singleton.FloatToAngle((float)roPtc.Data.face / 10f); entityConsiderDeath.CorrectMe(pos, face, false, roPtc.Data.bTransfer); } } } }