Rev | Line | |
---|
[142] | 1 | using System;
|
---|
[182] | 2 | using System.Reflection;
|
---|
[142] | 3 |
|
---|
| 4 | namespace AllocsFixes
|
---|
| 5 | {
|
---|
| 6 | public class StateManager
|
---|
| 7 | {
|
---|
[230] | 8 | public static void Awake ()
|
---|
[142] | 9 | {
|
---|
| 10 | try {
|
---|
| 11 | PersistentData.PersistentContainer.Load ();
|
---|
| 12 | } catch (Exception e) {
|
---|
| 13 | Log.Out ("Error in StateManager.Awake: " + e);
|
---|
| 14 | }
|
---|
| 15 | }
|
---|
| 16 |
|
---|
[230] | 17 | public static void Shutdown ()
|
---|
[142] | 18 | {
|
---|
| 19 | try {
|
---|
[145] | 20 | Log.Out ("Server shutting down!");
|
---|
[142] | 21 | PersistentData.PersistentContainer.Instance.Save ();
|
---|
| 22 | } catch (Exception e) {
|
---|
| 23 | Log.Out ("Error in StateManager.Shutdown: " + e);
|
---|
| 24 | }
|
---|
| 25 | }
|
---|
| 26 | }
|
---|
| 27 | }
|
---|
| 28 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.