Last change
on this file since 336 was 325, checked in by alloc, 6 years ago |
Code style cleanup (mostly whitespace changes, enforcing braces, using cleanup)
|
File size:
483 bytes
|
Line | |
---|
1 | using System;
|
---|
2 | using AllocsFixes.PersistentData;
|
---|
3 |
|
---|
4 | namespace AllocsFixes {
|
---|
5 | public class StateManager {
|
---|
6 | public static void Awake () {
|
---|
7 | try {
|
---|
8 | PersistentContainer.Load ();
|
---|
9 | } catch (Exception e) {
|
---|
10 | Log.Out ("Error in StateManager.Awake: " + e);
|
---|
11 | }
|
---|
12 | }
|
---|
13 |
|
---|
14 | public static void Shutdown () {
|
---|
15 | try {
|
---|
16 | Log.Out ("Server shutting down!");
|
---|
17 | PersistentContainer.Instance.Save ();
|
---|
18 | } catch (Exception e) {
|
---|
19 | Log.Out ("Error in StateManager.Shutdown: " + e);
|
---|
20 | }
|
---|
21 | }
|
---|
22 | }
|
---|
23 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.