コード例 #1
0
        public void SelectTarget(Unit target)
        {
            if (!Player.ExistsIn(World))
            {
                return;
            }

            Player.SetTarget(target);

            TargetSelectionRequestEvent targetSelectionRequest = TargetSelectionRequestEvent.Create(Bolt.GlobalTargets.OnlyServer);

            targetSelectionRequest.TargetId = target?.BoltEntity.NetworkId ?? default;
            targetSelectionRequest.Send();
        }