Newer
Older
HardPoint-Project-Abertay-University-Unity3D / Assets / Scripts / Effects / SpeedEffect.cs
@Rackday Rackday on 18 Aug 401 bytes Project Added
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

[CreateAssetMenu(menuName = "Effects/Speed")]

public class SpeedEffect : EffectBase
{
    public override void ApplyEffect(StatusEffects sE)
    {
        sE.speedGround += value;
        sE.speedAir+= value;
    }

    public override void RemoveEffect(StatusEffects sE)
    {
        sE.speedGround -= value;
    }

}