AbilityPackage.cs (541B)
1 using UnityEngine; 2 using Slimecing.Characters; 3 4 namespace Slimecing.Abilities { 5 [System.Serializable] 6 public class AbilityPackage 7 { 8 public Ability ability; 9 [HideInInspector] public bool initialized; 10 11 public AbilityPackage(Ability ability) 12 { 13 this.ability = ability; 14 } 15 16 public void Initialize(AbilityUser aUser) 17 { 18 if (ReferenceEquals(ability, null)) return; 19 ability.Initialize(aUser); 20 initialized = true; 21 } 22 } 23 } 24