Add Abilities
3
4
5
Ability Behavior class
public class NewAbilityBehavior : AbilityBehavior<HealEndgameAbilityData, HealEndgameAbilityLevel>
{
// Gets called when the ability is selected for the first time
public override void Init(AbilityData data, int levelId)
{
base.Init(data, levelId);
}
// Gets called when the ability is selected for the first time
protected override void SetData(HealEndgameAbilityData data)
{
base.SetData(data);
}
// Gets called when the ability is selected for the first time and after every upgrade
protected override void SetAbilityLevel(int levelId)
{
base.SetAbilityLevel(levelId);
}
// Gets called every time the ability get's upgraded.
// Dose not get called when the ability is selected for the first time
protected override void OnAbilityUpgraded(int levelId)
{
base.OnAbilityUpgraded(levelId);
}
// Calls when the ability is removed due to evolution or due to the end of the game
// Clear pools, projectiles, spawned game objects here
public override void Clear()
{
base.Clear();
}
}Last updated