コード例 #1
0
            static CreatureBoardAsset RemoveTargetFromNearestCreature()
            {
                CreatureBoardAsset creatureBoardAsset = Minis.GetCreatureClosestTo(Flashlight.GetPosition(), maxDistanceToNearestCreatureFt);

                if (creatureBoardAsset == null)
                {
                    return(null);
                }
                RemoveTargetFrom(creatureBoardAsset);

                return(creatureBoardAsset);
            }
コード例 #2
0
            private static void DropTargetAtFlashlight()
            {
                Vector3 targetPosition = Flashlight.GetPosition();

                AddTarget(targetPosition, Flashlight.Get().transform, 1);
            }
コード例 #3
0
 static CreatureBoardAsset GetNearestCreature()
 {
     return(Minis.GetCreatureClosestTo(Flashlight.GetPosition(), maxDistanceToNearestCreatureFt));
 }