Line | |
---|
1 | using System;
|
---|
2 |
|
---|
3 | namespace AllocsFixes
|
---|
4 | {
|
---|
5 | public class StateManager
|
---|
6 | {
|
---|
7 | public static void Awake (GameManager manager)
|
---|
8 | {
|
---|
9 | try {
|
---|
10 | CommandExtensions.InitCommandExtensions (manager);
|
---|
11 | PersistentData.PersistentContainer.Load ();
|
---|
12 | PersistentData.PersistentContainer.Instance.players.Add("123", new AllocsFixes.PersistentData.KnownPlayers());
|
---|
13 | } catch (Exception e) {
|
---|
14 | Log.Out ("Error in StateManager.Awake: " + e);
|
---|
15 | }
|
---|
16 | }
|
---|
17 |
|
---|
18 | public static void Shutdown (GameManager manager)
|
---|
19 | {
|
---|
20 | try {
|
---|
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.