mirror of
https://github.com/MartinKral/Slash-The-Hordes
synced 2025-10-09 16:46:00 +00:00
Icons
This commit is contained in:
@@ -65,6 +65,7 @@ export class AppRoot extends Component {
|
||||
const gameAssetsNode = instantiate(this.gameAssetsPrefab);
|
||||
gameAssetsNode.setParent(this.node);
|
||||
this.gameAssets = gameAssetsNode.getComponent(GameAssets);
|
||||
this.gameAssets.init();
|
||||
|
||||
this.audio.init(this.LiveUserData.soundVolume, this.LiveUserData.musicVolume);
|
||||
}
|
||||
|
@@ -2,7 +2,7 @@ import { sys } from "cc";
|
||||
import { UserData } from "../Game/Data/UserData";
|
||||
|
||||
export class SaveSystem {
|
||||
private userDataIdentifier = "user-de";
|
||||
private userDataIdentifier = "user-dse";
|
||||
public save(userData: UserData): void {
|
||||
sys.localStorage.setItem(this.userDataIdentifier, JSON.stringify(userData));
|
||||
}
|
||||
|
Reference in New Issue
Block a user