コード例 #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()
    {
        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);
        }
    }