public void ActivateObjectContainer(bool enable)
 {
     if (this.m_ObjectContainer != null)
     {
         SceneUtils.EnableRenderers(this.m_ObjectContainer, enable);
     }
 }
예제 #2
0
 protected override void ShowImpl()
 {
     base.ShowImpl();
     if (this.m_activeSplat != null)
     {
         SceneUtils.EnableRenderers(this.m_activeSplat.gameObject, true);
         this.m_DamageTextMesh.gameObject.SetActive(true);
     }
 }
 private void Awake()
 {
     s_instance = this;
     SceneUtils.EnableRenderers(this.m_Highlight, false);
     SceneUtils.EnableRenderers(this.m_EnemyHighlight, false);
     if (LoadingScreen.Get() != null)
     {
         LoadingScreen.Get().NotifyMainSceneObjectAwoke(base.gameObject);
     }
 }
 protected virtual void AnimateShow()
 {
     iTween.Stop(base.gameObject);
     this.m_shown = true;
     this.m_showAnimationFinished = false;
     base.gameObject.SetActive(true);
     SceneUtils.EnableRenderers(base.gameObject, false);
     this.DisableCancelButton();
     this.ShowPopup();
     this.AnimateBlurBlendOn();
 }
 private void UpdateHighlight()
 {
     if (this.m_highlightEnabled)
     {
         SceneUtils.EnableRenderers(this.m_Highlight, this.m_highlightEnabled);
         this.m_Highlight.GetComponent <Animation>().Play("Glow_PlayArea_Player_On");
     }
     else
     {
         this.m_Highlight.GetComponent <Animation>().Play("Glow_PlayArea_Player_Off");
     }
 }
예제 #6
0
    protected override void ShowPopup()
    {
        SoundManager.Get().LoadAndPlay("FindOpponent_mechanism_start");
        base.ShowPopup();
        PlayMakerFSM component = base.GetComponent <PlayMakerFSM>();
        FsmBool      @bool     = component.FsmVariables.FindFsmBool("PlaySpinningMusic");

        if (@bool != null)
        {
            @bool.Value = this.m_gameMode != SceneMgr.Mode.TAVERN_BRAWL;
        }
        component.SendEvent("Birth");
        SceneUtils.EnableRenderers(this.m_nameContainer, false);
        base.m_title.gameObject.SetActive(true);
        this.m_tipOfTheDay.gameObject.SetActive(true);
        Navigation.Push(new Navigation.NavigateBackHandler(this.OnNavigateBack));
    }
 private void ActivateArrow(bool active)
 {
     this.m_isActive = active;
     SceneUtils.EnableRenderers(this.m_arrow.gameObject, false);
     this.m_hunterReticle.SetActive(false);
     if (active)
     {
         if (this.m_ReticleType == TARGET_RETICLE_TYPE.DefaultArrow)
         {
             SceneUtils.EnableRenderers(this.m_arrow.gameObject, active && this.m_showArrow);
         }
         else if (this.m_ReticleType == TARGET_RETICLE_TYPE.HunterReticle)
         {
             this.m_hunterReticle.SetActive(active && this.m_showArrow);
         }
         else
         {
             UnityEngine.Debug.LogError("Unknown Target Reticle Type!");
         }
     }
 }
예제 #8
0
    protected override void OnAction(SpellStateType prevStateType)
    {
        base.OnAction(prevStateType);
        Entity     entity = base.GetSourceCard().GetEntity();
        Actor      actor  = SceneUtils.FindComponentInParents <Actor>(this);
        GameObject main   = this.m_minionPieces.m_main;
        bool       flag   = entity.HasTag(GAME_TAG.PREMIUM);

        if (flag)
        {
            main = this.m_minionPieces.m_premium;
            SceneUtils.EnableRenderers(this.m_minionPieces.m_main, false);
        }
        GameObject portraitMesh = actor.GetPortraitMesh();

        main.GetComponent <Renderer>().material = portraitMesh.GetComponent <Renderer>().sharedMaterial;
        main.SetActive(true);
        SceneUtils.EnableRenderers(main, true);
        if (entity.HasTaunt())
        {
            if (flag)
            {
                this.m_minionPieces.m_taunt.GetComponent <Renderer>().material = this.m_premiumTauntMaterial;
            }
            this.m_minionPieces.m_taunt.SetActive(true);
            SceneUtils.EnableRenderers(this.m_minionPieces.m_taunt, true);
        }
        if (entity.IsElite())
        {
            if (flag)
            {
                this.m_minionPieces.m_legendary.GetComponent <Renderer>().material = this.m_premiumEliteMaterial;
            }
            this.m_minionPieces.m_legendary.SetActive(true);
            SceneUtils.EnableRenderers(this.m_minionPieces.m_legendary, true);
        }
        this.m_attack.SetGameStringText(entity.GetATK().ToString());
        this.m_health.SetGameStringText(entity.GetHealth().ToString());
    }
 public void Show()
 {
     SceneUtils.EnableRenderers(base.gameObject, true);
 }
 public void Hide()
 {
     SceneUtils.EnableRenderers(base.gameObject, false);
 }
 private void LoadArrowCallback(string actorName, GameObject actorObject, object callbackData)
 {
     this.m_arrow = actorObject;
     SceneUtils.EnableRenderers(this.m_arrow.gameObject, false);
     this.ShowBullseye(false);
 }
예제 #12
0
 private void EnableAllRenderers(bool enabled)
 {
     SceneUtils.EnableRenderers(this.m_BloodSplat.gameObject, enabled);
     SceneUtils.EnableRenderers(this.m_HealSplat.gameObject, enabled);
     this.m_DamageTextMesh.gameObject.SetActive(enabled);
 }