Esempio n. 1
0
 // -----------------------------------------------------------------------------------
 // UCE_CastbarHide
 // -----------------------------------------------------------------------------------
 public void UCE_CastbarHide()
 {
     if (UCE_castbar == null)
     {
         UCE_castbar = FindObjectOfType <UCE_UI_CastBar>();
     }
     UCE_castbar.Hide();
 }
Esempio n. 2
0
 // -----------------------------------------------------------------------------------
 // UCE_CastbarShow
 // -----------------------------------------------------------------------------------
 public void UCE_CastbarShow(string message, float duration)
 {
     if (duration <= 0)
     {
         return;
     }
     if (UCE_castbar == null)
     {
         UCE_castbar = FindObjectOfType <UCE_UI_CastBar>();
     }
     UCE_castbar.Show(message, duration);
 }
Esempio n. 3
0
 // -----------------------------------------------------------------------------------
 // UCE_removeTask
 // @Client
 // -----------------------------------------------------------------------------------
 public void UCE_removeTask()
 {
     if (UCE_activeTasks > 0)
     {
         UCE_activeTasks--;
     }
     if (UCE_activeTasks < 1)
     {
         UCE_timer = 0;
         if (UCE_castbar == null)
         {
             UCE_castbar = FindObjectOfType <UCE_UI_CastBar>();
         }
         if (UCE_castbar != null)
         {
             UCE_castbar.Hide();
         }
     }
 }
    // -----------------------------------------------------------------------------------
    // UCE_CastbarShow
    // @Client
    // -----------------------------------------------------------------------------------
    public void UCE_CastbarShow(string message, float duration)
    {
        if (duration <= 0)
        {
            return;
        }

        Player player = Player.localPlayer;

        if (!player)
        {
            return;
        }

        if (UCE_castbar == null)
        {
            UCE_castbar = FindObjectOfType <UCE_UI_CastBar>();
        }

        if (UCE_castbar != null)
        {
            UCE_castbar.Show(message, duration);
        }
    }