Esempio n. 1
0
    void Awake()
    {
        sdReader = Instantiate(sdReaderPref).GetComponent <SaveDataReader>();
        aReader  = GetComponent <AbilityReader>();
        //これ以降AWAKEではaReaderは使わない まだ向こうがawakeされていない えらーが起こる

        havecommandNum = sdReader.GetCommandNum();
        commandList    = sdReader.GetHaveCommandwithNumber();
        haveabilityNum = sdReader.GetHavetotalCommandNum();
        abilityName    = new string[haveabilityNum];
    }
Esempio n. 2
0
 void Awake()
 {
     sdReader     = Instantiate(sdReaderPref).GetComponent <SaveDataReader>();
     hp.text      = sdReader.GetHP().ToString();
     power.text   = sdReader.GetPOWER().ToString();
     mpower.text  = sdReader.GetMAJICPOWER().ToString();
     sp.text      = sdReader.GetSP().ToString();
     spr.text     = sdReader.GetSPRECOVER().ToString();
     def.text     = sdReader.GetDEFENCE().ToString();
     comNum.text  = sdReader.GetCommandNum().ToString();
     openNum.text = sdReader.GetMatrixOpenNum().ToString();
 }