Beispiel #1
0
    public void LoadAccount() // 불러오기
    {
        AccountData account = BinaryFile.BinaryDeserialize <AccountData>(Application.persistentDataPath + "/SaveFile/LocalAccount/LocalAccount");

        numOfLux            = account.numOfLux;
        listOfConstellation = account.listOfConstellation;
    }
Beispiel #2
0
    public void NewAccount() // 새 게임(새 계정)
    {
        AccountData account;

        listOfConstellation = new List <ConstellationDictionary>();
        listOfConstellation.Add(new ConstellationDictionary("Aries", 0, string.Format("양자리\n\n전후방의 적들에게 일격을 가합니다."), true));
        listOfConstellation.Add(new ConstellationDictionary("Sagittarius", 0, string.Format("사수자리\n\n활을 쏘아 원거리로 공격합니다."), false));
        listOfConstellation.Add(new ConstellationDictionary("Sagittarius", 0, string.Format("사수자리\n\n활을 쏘아 원거리로 공격합니다."), false));
        listOfConstellation.Add(new ConstellationDictionary("Sagittarius", 0, string.Format("사수자리\n\n활을 쏘아 원거리로 공격합니다."), false));
        account = new AccountData(1000, 0, listOfConstellation);

        BinaryFile.BinarySerialize <AccountData>(account, Application.persistentDataPath + "/SaveFile/LocalAccount/LocalAccount");
        account = BinaryFile.BinaryDeserialize <AccountData>(Application.persistentDataPath + "/SaveFile/LocalAccount/LocalAccount");

        numOfLux            = account.numOfLux;
        listOfConstellation = account.listOfConstellation;
    }