Beispiel #1
0
 public override void HideOutline()
 {
     if (m_isDestroyed)
     {
         Debug.LogError("This OutlineGlowFX has been destroyed in this frame you cannot call any functions!");
         return;
     }
     if (m_isOutlineShown)
     {
         if (m_cameraUsedAtShowTime != null)
         {
             GlowFXControlScript.RemoveGlowDeep(gameObject, m_cameraUsedAtShowTime);
         }
         m_Registration   = null;
         m_isOutlineShown = false;
         m_outlineColor   = Color.clear;
     }
 }
Beispiel #2
0
 public override void ShowOutline(Boolean doHighlight, Color color)
 {
     if (m_isDestroyed)
     {
         Debug.LogError("This OutlineGlowFX has been destroyed in this frame you cannot call any functions!");
         return;
     }
     if (Camera.main != null)
     {
         m_outlineColor         = color;
         m_cameraUsedAtShowTime = Camera.main;
         GlowFXControlScript.SetObjectGlowDeep(gameObject, color, 1f, true, m_cameraUsedAtShowTime);
         m_Registration               = RedrawCameraGlow.GetRedrawCameraGlowScript(m_cameraUsedAtShowTime, false).RegistrationData;
         m_Registration.DownScale     = 2;
         m_Registration.BlurSpread    = BLUR_SPREAD;
         m_Registration.GlowIntensity = GLOW_INTENSITY;
         m_isOutlineShown             = true;
         m_transitionTime             = ((!doHighlight) ? Time.time : (Time.time + 0.25f));
     }
 }