Beispiel #1
0
 public static CharacterPositions GetCreaturesInsideTargetingVolume()
 {
     if (TargetingVolume != null)
     {
         return(TargetingVolume.GetAllCreaturesInVolume());
     }
     return(null);
 }
Beispiel #2
0
            private static void ToggleTargetIndicatorState(bool isInRange)
            {
                GameObject disk     = activeTargetDisk.FindChild("Disk", true);
                GameObject disabled = activeTargetDisk.FindChild("Disabled", true);

                if (disk != null && disabled != null)
                {
                    disk.SetActive(isInRange);
                    disabled.SetActive(!isInRange);
                }
                if (!isInRange)
                {
                    TargetIsOutOfRange();
                }
                else
                {
                    TargetIsInRange();
                }

                if (TargetingVolume != null)
                {
                    TargetingVolume.SetActive(isInRange);
                }
            }