示例#1
0
 // 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>();
 }
示例#2
0
    // 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> ();
 }
示例#4
0
 void Awake()
 {
     scComp    = GetComponent <SpellCreating>();
     agent     = GetComponent <NavMeshAgent>();
     character = GetComponent <UnityStandardAssets.Characters.ThirdPerson.ThirdPersonCharacter>();
 }