Exemple #1
0
        public void MoveToRandomPos()
        {
#if SERVER
            Vector3 randomTarget = new Vector3(RandomHelper.RandomNumber(this.XMin, this.XMax), 0, RandomHelper.RandomNumber(this.YMin, this.YMax));
            Game.EventSystem.Run(EventIdType.MoveToRandomPos, this.Unitid, randomTarget);
            //Log.Info($"开始寻路,目标点:{randomTarget}");
#endif
        }
Exemple #2
0
 public static Color RandColor()
 {
     return(new Color(RandomHelper.RandFloat(), RandomHelper.RandFloat(), RandomHelper.RandFloat()));
 }
 public void RefreshDistanceTravelledEnd()
 {
     DistanceTravelledEnd = RandomHelper.RandomDouble() * (DistanceTravelledEndMax - DistanceTravelledEndMin) + DistanceTravelledEndMin;
 }