Beispiel #1
0
    protected virtual void Awake()
    {
        foreach (var c in GetComponents <UniqueIdentifier>().Where(t => t.GetType() == typeof(UniqueIdentifier) && t != this))
        {
            DestroyImmediate(c);
        }

        SaveGameManager.Initialize(() =>
        {
            FullConfigure();
        });
    }
Beispiel #2
0
 protected virtual void Awake()
 {
     foreach (UniqueIdentifier current in from t in base.GetComponents <UniqueIdentifier>()
              where t.GetType() == typeof(UniqueIdentifier) && t != this
              select t)
     {
         UnityEngine.Object.DestroyImmediate(current);
     }
     SaveGameManager.Initialize(delegate
     {
         if (base.gameObject == null)
         {
             return;
         }
         this.FullConfigure();
     });
 }