Exemple #1
0
    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;
 }
Exemple #5
0
 public void SetToSpeedDebuff()
 {
     type = debuffType.SPEED;
 }
Exemple #6
0
 public void SetToDefenceDebuff()
 {
     type = debuffType.DEFENCE;
 }
Exemple #7
0
 // Methods used by Buttons:
 public void SetToAttackDebuff()
 {
     type = debuffType.ATTACK;
 }