示例#1
0
        public void HandleMove(string id, Vec3 targetPoint)
        {
            Bio bio = this.GetBio(id);

            if (bio == null)
            {
                return;
            }

            if (!bio.CanMove())
            {
                return;
            }

            bio.Move(targetPoint);
        }
示例#2
0
        public void HandleTrack(string id, string targetId)
        {
            Bio bio = this.GetBio(id);

            if (bio == null)
            {
                return;
            }

            if (!bio.CanMove())
            {
                return;
            }

            Bio target = this.GetBio(targetId);

            if (target == null)
            {
                return;
            }

            bio.Track(target);
        }