// Use this for initialization void Start() { if (isLocalPlayer) { currentText = GameObject.Find("TypeText").GetComponent <Text>(); spellCheck = GameObject.Find("TypeText").GetComponent <TypeTextSpellCheck>(); currentText.text = ""; spellCreateComponent = GetComponentInParent <NetSpellCreating>(); newSpellBook = GameObject.Find("NewSpellBook"); hintLogic = newSpellBook.GetComponent <Info>(); hintLogic.infoPanel.SetActive(false); } }
// Use this for initialization void Start() { scComp = gameObject.GetComponent <NetSpellCreating>(); rand = new Random(); }