protected override void OnResponse(string data) { string[] res = data.Split('|'); Vector3 pos = Vct3Ex.Parse(res[0]); Vector3 eul = Vct3Ex.Parse(res[1]); Instantiate(remoteArrowGo, pos, Quaternion.Euler(eul)); Facade.PlayNorSound(AudioManger.Sound_Timer); }
//接收同步响应 protected override void OnResponse(string data) { string[] strs = data.Split('|'); Vector3 pos = Vct3Ex.Parse(strs[0]); Vector3 rot = Vct3Ex.Parse(strs[1]); float forward = float.Parse(strs[2]); SyncRemotePlayer(pos, rot, forward); }