public void Start() { _manager = SpellManager.Instance; _presenter = GetComponentInChildren <SpellCastingPresenter>(); _presenter.SetVisibility(true); UpdatePresenter(_manager.ActiveSpell); }
public void Awake() { _maestro = Maestro.Instance; _controls = ControlManager.Instance; _characters = CharacterManager.Instance; // Acquire mana system, so that we can tell spells to consume mana charges. GameObject playerCharacter = GameObject.FindGameObjectWithTag("Player"); _mana = playerCharacter.GetComponent <ManaController>(); _spellInterface = GetComponentInChildren <SpellCastingPresenter>(); _targetPresenter = GetComponentInChildren <SpellTargetingPresenter>(); }