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 {
|
---|
[197] | 11 | ItemList.Instance.Init ();
|
---|
[182] | 12 |
|
---|
[142] | 13 | PersistentData.PersistentContainer.Load ();
|
---|
| 14 | } catch (Exception e) {
|
---|
| 15 | Log.Out ("Error in StateManager.Awake: " + e);
|
---|
| 16 | }
|
---|
| 17 | }
|
---|
| 18 |
|
---|
[230] | 19 | public static void Shutdown ()
|
---|
[142] | 20 | {
|
---|
| 21 | try {
|
---|
[145] | 22 | Log.Out ("Server shutting down!");
|
---|
[142] | 23 | PersistentData.PersistentContainer.Instance.Save ();
|
---|
| 24 | } catch (Exception e) {
|
---|
| 25 | Log.Out ("Error in StateManager.Shutdown: " + e);
|
---|
| 26 | }
|
---|
| 27 | }
|
---|
| 28 | }
|
---|
| 29 | }
|
---|
| 30 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.