Example #1
0
 void OnDestroy()
 {
     if (this.enabled)
     {
         playerData.Save(filename);
     }
 }
 void OnDestroy()
 {
     if (this.enabled)
     {
         playerData.Save(filename);
     }
     if (added)
     {
         controller.tickUpdateDebug -= this.Tick;
         added = false;
     }
 }