示例#1
0
 // Use this for initialization
 void Awake()
 {
     //モンスターステータスの設定
     //モンスターのステータスを参照
     MonsterNAME = GameObject.Find("MONSTERNAMEText").GetComponent <MONSTERNAMEText>();
     MonsterLv   = GameObject.Find("MONSTERLEVELText").GetComponent <MONSTERLEVELText>();
     MonsterHP   = GameObject.Find("MONSTERHPText").GetComponent <MONSTERHPText>();
     MonsterATK  = GameObject.Find("MONSTERATKText").GetComponent <MONSTERATKText>();
     MonsterSPD  = GameObject.Find("MONSTERSPDText").GetComponent <MONSTERSPDText>();
     MonsterEXP  = GameObject.Find("MONSTEREXPText").GetComponent <MONSTEREXPText>();
 }
示例#2
0
    // Use this for initialization
    void Awake()
    {
        PS       = GameObject.Find("PlayerStatus").GetComponent <PlayerStatus>();
        Movement = GameObject.Find("Moving").GetComponent <Moving>();
        //モンスターステータスの設定
        //モンスターのステータスを参照
        MonsterHP  = GameObject.Find("MONSTERHPText").GetComponent <MONSTERHPText>();
        MonsterATK = GameObject.Find("MONSTERATKText").GetComponent <MONSTERATKText>();
        MonsterSPD = GameObject.Find("MONSTERSPDText").GetComponent <MONSTERSPDText>();
        MonsterEXP = GameObject.Find("MONSTEREXPText").GetComponent <MONSTEREXPText>();

        Monster = GameObject.Find("MONSTERSET").GetComponent <MONSTERSET>();
    }