void Awake() { Overlord.instance.gameAppRef = this; isPause = false; if (playerRef == null) { GameObject tmp = Instantiate(playerPrefab) as GameObject; playerRef = tmp.GetComponent<Player>(); } weaponManRef.Init(playerRef); audioRef.enabled = !Overlord.instance.isMute; spawnRef = new Spawner(); spawnRef.PrepareLevel(0); storyRef = new StoryMan(); storyRef.Init(storyCanvas); }