public void Save(mg_jr_GoalManager _goalManager)
        {
            IList <mg_jr_Goal> activeGoals = _goalManager.ActiveGoals;

            Assert.AreEqual(activeGoals.Count, 3, "Goal manager has unexpected number of active goals");
            for (int i = 0; i < activeGoals.Count; i++)
            {
                PlayerPrefs.SetInt("mg_jr_activeGoal_number_" + i + "_duration", (int)activeGoals[i].Duration);
                PlayerPrefs.SetInt("mg_jr_activeGoal_number_" + i + "_progress", (int)activeGoals[i].Type);
            }
        }
Beispiel #2
0
 public void Init(mg_jr_GameData _balance, mg_jr_GoalManager _goalManager)
 {
     m_balance     = _balance;
     m_goalManager = _goalManager;
 }
 private void Awake()
 {
     m_goalManager = MinigameManager.GetActive <mg_JetpackReboot>().GoalManager;
 }