Пример #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];
    }