add some extra assets FX and SFX
This commit is contained in:
@@ -116,6 +116,15 @@ public class abilityInfo : MonoBehaviour
|
||||
public bool useEnergyOnceOnPressDown;
|
||||
public bool useEnergyOnceOnPressUp;
|
||||
|
||||
[Space]
|
||||
[Header ("Animation Settings")]
|
||||
[Space]
|
||||
|
||||
public bool useAnimationWithActionSystem;
|
||||
public string animationActionSystemName;
|
||||
public bool useAnimationOnPressDown;
|
||||
public bool useAnimationOnPressUp;
|
||||
|
||||
[Space]
|
||||
[Header ("Ability Components")]
|
||||
[Space]
|
||||
@@ -252,6 +261,24 @@ public class abilityInfo : MonoBehaviour
|
||||
|
||||
}
|
||||
|
||||
public void checkIfUseAnimationWithActionSystemOnPressDown ()
|
||||
{
|
||||
if (useAnimationWithActionSystem) {
|
||||
if (useAnimationOnPressDown) {
|
||||
mainPlayerAbilitiesSystem.activateCustomAction (animationActionSystemName);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public void checkIfUseAnimationWithActionSystemOnPressUp ()
|
||||
{
|
||||
if (useAnimationWithActionSystem) {
|
||||
if (useAnimationOnPressUp) {
|
||||
mainPlayerAbilitiesSystem.activateCustomAction (animationActionSystemName);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public void checkEventOnSetCurrentAbility ()
|
||||
{
|
||||
if (useEventsOnSetCurrentAbility) {
|
||||
|
||||
Reference in New Issue
Block a user