public override void UseAbilityPassive() { Sprite permanentImmunity = Resources.Load <Sprite>("BuffIcons/PermanentImmunity"); Sprite unluckyAkroma = Resources.Load <Sprite>("BuffIcons/UnluckyAkroma"); hero = GetComponentInParent <HeroManager>(); buffPanel = hero.gameObject.GetComponentInChildren <BuffPanel>(); //apply effect hero.hasPermanentImmunity = true; //add icon buffPanel.AddIcon("PermanentImmunity", permanentImmunity, 0); List <HeroManager> enemies = GameManager.Instance.EnemyHeroList(hero); foreach (HeroManager enemy in enemies) { enemy.chance -= chanceReduction; //AddIcon BuffPanel buffPanelEnemy = enemy.gameObject.GetComponentInChildren <BuffPanel>(); buffPanelEnemy.AddIcon("UnluckyAkroma", unluckyAkroma, 0); } base.UseAbilityPassive(); } //UsePassive
void Start() { GameManager.Instance.e_PlayerStartPhase += DecreaseDuration; buffPanel = gameObject.GetComponentInChildren <BuffPanel>(); AddIcon(); gameObject.GetComponent <HeroManager>().UpdateUI(); }
public void OnDrop(PointerEventData eventData) { BuffPanel buffPanel = eventData.pointerDrag.GetComponent <BuffPanel>(); if (buffPanel != null) { TowerManager.Instance.ApplyUpgrade(m_Tower, m_BuffIndex, buffPanel.m_Buff); m_TowerButton.Refresh(); } }
} = 1; // 플레이어 레벨 /// <summary> /// 레벨업 시 딜레이 후 처리 /// </summary> /// <returns></returns> IEnumerator LevelUpDelay() { yield return(new WaitForSeconds(DELAY_INTERVAL)); // 시간 정지 후 버프 패널 노출 Time.timeScale = 0f; BuffPanel buffPanel = PanelManager.GetPanel(typeof(BuffPanel)) as BuffPanel; buffPanel.Show(); }
void Awake() { gameController = gameObject.GetComponent <GameController>(); panelObject = GameObject.Find("BuffPanel"); panelController = panelObject.GetComponent <BuffPanel>(); resetBuffs = Resources.LoadAll <BuffData>(resetBuffsPath); resetBuffNumer = resetBuffs.Length; //Default buff values buffs.initCoinIncr = 0; buffs.rewardCoinIncr = 0; buffs.prodIncr = 1; buffs.expIncr = 1; }
} //UsePassive public override void DisableAbilityPassive() { //apply effect buffPanel = hero.GetComponentInChildren <BuffPanel>(); hero.hasPermanentImmunity = false; List <HeroManager> enemies = GameManager.Instance.EnemyHeroList(hero); foreach (HeroManager enemy in enemies) { enemy.chance += chanceReduction; //RemoveIcon BuffPanel buffPanelEnemy = enemy.gameObject.GetComponentInChildren <BuffPanel>(); buffPanelEnemy.RemoveIcon("UnluckyAkroma"); } buffPanel.RemoveIcon("PermanentImmunity"); base.DisableAbilityPassive(); } //Disable
public LocalBuffPanelAddingSystem(Contexts contexts, BuffPanel panel) : base(contexts) { _panel = panel; }
public LocalBuffPanelRemoveSystem(Contexts contexts, BuffPanel panel) : base(contexts) { _panel = panel; }