void Start() { // Applying references references mouseController = GameObject.FindGameObjectWithTag("MouseManager").GetComponent <MouseController>(); spellButtons = GameObject.FindGameObjectWithTag("PlayerController").GetComponent <SpellButtons>(); gridController = GameObject.FindGameObjectWithTag("GameController").GetComponent <GridController>(); lOS = GetComponent <LineOfSight>(); playerBehaviour = gameObject.GetComponentInParent <PlayerBehaviour>(); }
void Start() { spellButtons = GameObject.FindGameObjectWithTag("PlayerController").GetComponent <SpellButtons>(); spellButtons = GameObject.FindGameObjectWithTag("PlayerController").GetComponent <SpellButtons>(); spellCalculators = GameObject.FindGameObjectWithTag("PlayerController").GetComponent <SpellCalculators>(); spellFormulaes = GameObject.FindGameObjectWithTag("PlayerController").GetComponent <SpellFormulaes>(); spellChecker = GameObject.FindGameObjectWithTag("PlayerController").GetComponent <SpellChecker>(); mc = GameObject.FindGameObjectWithTag("MouseManager").GetComponent <MouseController>(); }