Exemplo n.º 1
0
 public static void SaveEndWave()
 {
     PlayStationVita.SaveFile();
 }
Exemplo n.º 2
0
 public static void SaveOptions()
 {
     PlayStationVita.SaveFile();
 }
Exemplo n.º 3
0
 public static void SaveStore()
 {
     PlayStationVita.SaveFile();
 }
Exemplo n.º 4
0
        public static void CheckAchievements()
        {
             #if UNITY_PS4
            if (DataStorage.AmountOfObjectivesComplete > 74)
            {
                PlayStation4.AwardTrophy(Achievement.LikeMothsToFlame);
            }
            if (DataStorage.AmountOfObjectivesComplete > 49)
            {
                PlayStation4.AwardTrophy(Achievement.BlueSkies);
            }
            if (DataStorage.AmountOfObjectivesComplete > 19)
            {
                PlayStation4.AwardTrophy(Achievement.Rambunctious);
            }
            if (DataStorage.AmountOfObjectivesComplete > 9)
            {
                PlayStation4.AwardTrophy(Achievement.Misdeeds);
            }
            if (DataStorage.AmountOfObjectivesComplete > 2)
            {
                PlayStation4.AwardTrophy(Achievement.ToothSome);
            }

            int currentDay = (DataStorage.StartOnWave / 3 + 1);
            if (currentDay > 100)
            {
                PlayStation4.AwardTrophy(Achievement.TooManyGuns);
            }
            if (currentDay > 30)
            {
                PlayStation4.AwardTrophy(Achievement.Molytrols);
            }
            if (currentDay > 20)
            {
                PlayStation4.AwardTrophy(Achievement.AnotherPeter);
            }
            if (currentDay > 10)
            {
                PlayStation4.AwardTrophy(Achievement.Savior);
            }
            if (currentDay > 5)
            {
                PlayStation4.AwardTrophy(Achievement.HalfStep);
            }
            #elif UNITY_PSP2
            if (DataStorage.AmountOfObjectivesComplete > 74)
            {
                PlayStationVita.AwardTrophy(Achievement.LikeMothsToFlame);
            }
            if (DataStorage.AmountOfObjectivesComplete > 49)
            {
                PlayStationVita.AwardTrophy(Achievement.BlueSkies);
            }
            if (DataStorage.AmountOfObjectivesComplete > 19)
            {
                PlayStationVita.AwardTrophy(Achievement.Rambunctious);
            }
            if (DataStorage.AmountOfObjectivesComplete > 9)
            {
                PlayStationVita.AwardTrophy(Achievement.Misdeeds);
            }
            if (DataStorage.AmountOfObjectivesComplete > 2)
            {
                PlayStationVita.AwardTrophy(Achievement.ToothSome);
            }

            int currentDay = (DataStorage.StartOnWave / 3 + 1);
            if (currentDay > 100)
            {
                PlayStationVita.AwardTrophy(Achievement.TooManyGuns);
            }
            if (currentDay > 30)
            {
                PlayStationVita.AwardTrophy(Achievement.Molytrols);
            }
            if (currentDay > 20)
            {
                PlayStationVita.AwardTrophy(Achievement.AnotherPeter);
            }
            if (currentDay > 10)
            {
                PlayStationVita.AwardTrophy(Achievement.Savior);
            }
            if (currentDay > 5)
            {
                PlayStationVita.AwardTrophy(Achievement.HalfStep);
            }
            #else
            if (DataStorage.AmountOfObjectivesComplete > 74)
            {
                AppMain.menuAchievements.Award(Achievement.LikeMothsToFlame);
            }
            if (DataStorage.AmountOfObjectivesComplete > 49)
            {
                AppMain.menuAchievements.Award(Achievement.BlueSkies);
            }
            if (DataStorage.AmountOfObjectivesComplete > 19)
            {
                AppMain.menuAchievements.Award(Achievement.Rambunctious);
            }
            if (DataStorage.AmountOfObjectivesComplete > 9)
            {
                AppMain.menuAchievements.Award(Achievement.Misdeeds);
            }
            if (DataStorage.AmountOfObjectivesComplete > 2)
            {
                AppMain.menuAchievements.Award(Achievement.ToothSome);
            }

            int currentDay = (DataStorage.StartOnWave / 3 + 1);
            if (currentDay > 100)
            {
                AppMain.menuAchievements.Award(Achievement.TooManyGuns);
            }
            if (currentDay > 30)
            {
                AppMain.menuAchievements.Award(Achievement.Molytrols);
            }
            if (currentDay > 20)
            {
                AppMain.menuAchievements.Award(Achievement.AnotherPeter);
            }
            if (currentDay > 10)
            {
                AppMain.menuAchievements.Award(Achievement.Savior);
            }
            if (currentDay > 5)
            {
                AppMain.menuAchievements.Award(Achievement.HalfStep);
            }
            #endif
        }