示例#1
0
    void SaveStatePacket(PlayerSaveStatePacket packet)
    {
        Debug.Log("RECEIVED!");
        trackedEntityIds = new HashSet <int>();
        AccountId        = packet.state.accountId;
        this.saveState   = packet.state;

        SpatialPartitioning.Register(this);
    }
示例#2
0
    protected override void Start()
    {
        base.Start();

        OnInitData += OnSendingInitData;
        Position    = transform.position;
        Rotation    = transform.rotation.eulerAngles;
        RegisterNPC();
        SpatialPartitioning.Register(this);
    }