basically the whole game
This commit is contained in:
parent
949135cecb
commit
96dcfa9064
315 changed files with 34386 additions and 396 deletions
|
|
@ -13,12 +13,24 @@ public class Ability : MonoBehaviour
|
|||
public Transform origin;
|
||||
public Vector3 direction;
|
||||
|
||||
public bool TryAbility()
|
||||
[Header("SFX")]
|
||||
[SerializeField] protected AudioClip abilitySound;
|
||||
[SerializeField] protected float volume = 1f;
|
||||
|
||||
[Header("Animation")]
|
||||
[SerializeField] private Animator animator;
|
||||
[SerializeField] private string attackTrigger;
|
||||
|
||||
public virtual bool TryAbility()
|
||||
{
|
||||
if (currentCooldown <= 0)
|
||||
{
|
||||
currentCooldown = cooldown;
|
||||
AbilityEffects();
|
||||
if (animator)
|
||||
{
|
||||
animator.SetTrigger(attackTrigger);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue