void SaveStatePacket(PlayerSaveStatePacket packet) { Debug.Log("RECEIVED!"); trackedEntityIds = new HashSet <int>(); AccountId = packet.state.accountId; this.saveState = packet.state; SpatialPartitioning.Register(this); }
protected override void Start() { base.Start(); OnInitData += OnSendingInitData; Position = transform.position; Rotation = transform.rotation.eulerAngles; RegisterNPC(); SpatialPartitioning.Register(this); }