public void HandleMove(string id, Vec3 targetPoint) { Bio bio = this.GetBio(id); if (bio == null) { return; } if (!bio.CanMove()) { return; } bio.Move(targetPoint); }
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); }