protected override void OnUpdate()
        {
            if (entityQueryId != null)
            {
                HandleEntityQueryResponses();
                return;
            }

            if (IsCheckTime)
            {
                return;
            }

            if (inter.CheckTime() == false)
            {
                return;
            }

            // position check
            if (OtherCheck == false)
            {
                return;
            }

            SendEntityQuery();
        }
Beispiel #2
0
        protected override void OnUpdate()
        {
            if (inter.CheckTime())
            {
                UpdateStrongHolds();
            }

            UpdateForCreateCommander();
        }
        protected override void OnUpdate()
        {
            if (inter.CheckTime())
            {
                Entities.With(group).ForEach((Unity.Entities.Entity entity,
                                              ref PlayerInfo.Component playerInfo,
                                              ref Position.Component position) =>
                {
                    if (playerInfo.ClientWorkerId.Equals(this.WorkerSystem.WorkerId) == false)
                    {
                        return;
                    }

                    playerPosition = position.Coords.ToUnityVector() + this.Origin;
                });
            }

            base.OnUpdate();
        }
 protected bool CheckTime(ref IntervalChecker inter)
 {
     return(inter.CheckTime(this.CurrentTime));
 }