コード例 #1
0
    public void LoadGameParty()
    {
        bool hasParty = PlanetSave.LoadParty();

        if (hasParty)
        {
            if (PlanetSave.GameStateSave.version == VERSION)
            {
                Events.Instance.Raise(new PartyLoaded(hasParty));
            }
            else
            {
                PlanetSave.DeleteParty();
                PARTY_TYPE = EPartyType.NONE;
                Events.Instance.Raise(new PartyLoaded(false));
            }
        }
        else
        {
            Events.Instance.Raise(new PartyLoaded(hasParty));
        }
    }