private void LoadPack()
        {
            if (packs != null && packs.Count > 0)
            {
                for (int i = 0; i < packs.Count; i++)
                {
                    Pack      pack      = packs[i];
                    SavedPack savedPack = BinaryPrefs.GetClass <SavedPack>(pack.id.ToString());
                    if (savedPack != null)
                    {
                        packs[i].LoadFrom(savedPack);
                    }

                    pack.onCollectSuccessful += OnPackCollectSuccessfulInvoker;
                    pack.onCollectFailed     += OnPackCollectFailedInvoker;
                }
            }
            else
            {
                Debug.LogWarning("There is no pack in your game ! Please verify that everything is setup correctly", this);
            }
        }
Beispiel #2
0
 public override void LoadFrom(SavedPack _savedPack)
 {
     //Nothing to do here
 }
Beispiel #3
0
 /// <summary>
 /// Method used to load the information from the _savedPack
 /// </summary>
 /// <param name="_savedPack"></param>
 public abstract void LoadFrom(SavedPack _savedPack);