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