Files
blackhole-escape/Assets/Scripts/PowerUps/AttachablePowerUpEffect.cs
iDunnoDev fb3415c7b2 Added new sounds needed for game
Added blackhole swirl texture and materials
Added Magnet, Hunter and Drop core powerups and script overhaul for powerups in general
Added Scenes and Cinematic changes for the game, win and death screens
Added a score
Changed the way enemy spawns work
Removed unused scripts
2022-07-14 17:31:10 +01:00

60 lines
1.1 KiB
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class AttachablePowerUpEffect : PowerUpEffect
{
public string uiReadyText;
[TextArea]
public string uiDescText;
public AudioClip onUseSFX;
public AudioClip onAltSFX;
public float abilityCooldown;
protected bool _abilityCooldown;
protected TimerHelper _abilityCooldownTimer;
public bool CooldownStatus
{
get
{
return _abilityCooldown;
}
}
public float CooldownTimePercent
{
get
{
return _abilityCooldownTimer.Position;
}
}
public float CooldownTime
{
get
{
return _abilityCooldownTimer.CurrentTick;
}
}
public virtual bool OnUseEffect()
{
return false;
}
public virtual bool OnAltUseEffect()
{
return false;
}
public virtual T GetStatChangesValue<T>(string statName, T currentValue)
{
switch(statName)
{
default:
return currentValue;
}
}
}