// Use this for initialization void Start() { currentText = GameObject.Find("TypeText").GetComponent <Text>(); currentText.text = ""; spellCheck = GameObject.Find("TypeText").GetComponent <TypeTextSpellCheck>(); spellCreateComponent = GetComponentInParent <SpellCreating>(); hintLogic = newSpellBook.GetComponent <Info>(); }
// Use this for initialization void Start() { currentText.text = ""; spellCreateComponent = GetComponentInParent <SpellCreating>(); foreach (string spell in spellBook) { spellBookText.text += "\n" + spell; } }
// Use this for initialization void Start() { scComp = gameObject.GetComponent <SpellCreating> (); }
void Awake() { scComp = GetComponent <SpellCreating>(); agent = GetComponent <NavMeshAgent>(); character = GetComponent <UnityStandardAssets.Characters.ThirdPerson.ThirdPersonCharacter>(); }