public Spell(InputAction.Spell type, ReloadType reloadType, int reloadData, bool instant) { this.type = type; this.reloadType = reloadType; ReloadData = reloadData; Instant = instant; _actualReloadData = reloadData; _icon = null; _dataDisplay = null; switch (reloadType) { case ReloadType.USAGE: _actualReloadData = reloadData; break; case ReloadType.COOLDOWN: _actualReloadData = 0; if (_icon != null) { _icon.color = Color.white; } break; } }
public void Deactivate(InputAction.Spell spell) { SpellDict[spell].Deactivate(); }
public bool IsActivated(InputAction.Spell spell) { return(SpellDict[spell].Activated); }
public void Cancel(InputAction.Spell spell) { SpellDict[spell].Cancel(); }
public bool IsAvailable(InputAction.Spell spell) { return(SpellDict[spell].IsAvailable()); }
public bool Activate(InputAction.Spell spell) { return(SpellDict[spell].Activate()); }
public Spell Get(InputAction.Spell spell) { return(SpellDict[spell]); }
public void AttachDisplay(InputAction.Spell spell, string container) { SpellDict[spell].AttachDisplay(container); }
public void Add(InputAction.Spell type, Spell spell) { SpellDict[type] = spell; }