Esempio n. 1
0
            public void UpdateTracking(bool getNeighbors)
            {
                if (playerEntity == null)
                {
                    return;
                }

                TrackData trackData = playerEntity.GetTrackData();

                trackData.id = NetworkSettings.instance.username;
                trackData.neighborEntityType = TrackData.EntityType.Any;

                if (getNeighbors)
                {
                    if (badShortId != 0)
                    {
                        trackData.getNeighbors = 2;
                        badShortId             = 0;
                    }
                    else
                    {
                        trackData.getNeighbors = 1;
                    }
                }
                else
                {
                    trackData.getNeighbors = 0;
                }


                trackData.id = NetworkSettings.instance.username;
                Entity entity = new Entity();

                entity.id        = "0";
                entity.trackData = trackData;
                if (ActorSystem.instance.client != null)
                {
                    ActorSystem.instance.client.SendEntity(entity);
                }

                //trackData.getNeighbors = 2;
                //trackData.zone = ZoneHandler.instance.currentZoneNumber();
            }