Line | |
---|
1 | using System;
|
---|
2 | using System.Reflection;
|
---|
3 |
|
---|
4 | namespace AllocsFixes
|
---|
5 | {
|
---|
6 | public class StateManager
|
---|
7 | {
|
---|
8 | public static void Awake ()
|
---|
9 | {
|
---|
10 | try {
|
---|
11 | ItemList.Instance.Init ();
|
---|
12 |
|
---|
13 | PersistentData.PersistentContainer.Load ();
|
---|
14 | } catch (Exception e) {
|
---|
15 | Log.Out ("Error in StateManager.Awake: " + e);
|
---|
16 | }
|
---|
17 | }
|
---|
18 |
|
---|
19 | public static void Shutdown ()
|
---|
20 | {
|
---|
21 | try {
|
---|
22 | Log.Out ("Server shutting down!");
|
---|
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.