Exemple #1
0
 /// <summary>
 /// Hide Range Indicator
 /// </summary>
 public void CancelRangeIndicator()
 {
     if (CurrentRangeIndicator != null)
     {
         CurrentRangeIndicator.OnHide();
         CurrentRangeIndicator.gameObject.SetActive(false);
         CurrentRangeIndicator = null;
     }
 }
Exemple #2
0
        /// <summary>
        /// Select and make visible the Range Indicator given by name.
        /// </summary>
        public void SelectRangeIndicator(string splatName)
        {
            CancelRangeIndicator();
            RangeIndicator indicator = GetRangeIndicator(splatName);

            // If current spell indicator uses same Range indicator then cancel it.
            if (CurrentSpellIndicator != null && CurrentSpellIndicator.RangeIndicator == indicator)
            {
                CancelSpellIndicator();
            }

            indicator.gameObject.SetActive(true);
            indicator.OnShow();
            CurrentRangeIndicator = indicator;
        }