public override void Execute() { base.Execute(); int randomValue = UnityEngine.Random.Range(0, 2); switch (randomValue) { case 0: type = debuffType.drawReverse; spriteRenderer.sprite = spriteResources[0]; break; case 1: type = debuffType.directionReverse; spriteRenderer.sprite = spriteResources[1]; break; } if (type == debuffType.drawReverse) { toggleDebuff?.Invoke(index); } }
public void SetToSpeedDebuff() { type = debuffType.SPEED; }
public void SetToDefenceDebuff() { type = debuffType.DEFENCE; }
public void SetToAttackDebuff() { type = debuffType.ATTACK; }
// Methods used by Buttons: public void SetToAttackDebuff() { type = debuffType.ATTACK; }