// Start is called before the first frame update protected override void Init() { base.Init(); SceneType = Define.Scene.Game; //인벤토리 열기 //Managers.UI.ShowSceneUI<UI_Inven>(); gameObject.GetOrAddComponent <CursorController>(); GameObject player = Managers.Game.Spawn(Define.WorldObject.Player, "UnityChan"); Camera.main.gameObject.GetOrAddComponent <CameraController>().SetPlayer(player); Managers.Game.Spawn(Define.WorldObject.Monster, "Knight"); Managers.Sound.Play("Sounds/GameSound/AboveTheTreetops", Define.Sound.Bgm, 0.45f); GameObject go = new GameObject { name = "SpawningPool" }; SpawningPool pool = go.GetOrAddComponent <SpawningPool>(); //임시 for (int i = 0; i < 30; i++) { Managers.Inven.Add(1000, Define.InvenType.Consume); Managers.Inven.Add(1002, Define.InvenType.Consume); } pool.SetKeepMonsterCount(5); }
protected override void Init() { base.Init(); SceneType = Define.Scene.Game; //인게임 씬에서는 UI 팝업창이 열려~ Managers.UI.ShowSceneUI <UI_Inven>(); //임시로 //for (int i = 0; i < 5; i++){ // Managers.Resource.Instantiate("UnityChan"); //} //co = StartCoroutine("CoExplodeAfterSeconds", 4.0f); //StartCoroutine("CoStopExplode", 3.0f); //임시로 Dictionary <int, Data.Stat> dict = Managers.Data.StatDict; gameObject.GetOrAddComponent <CursorController>(); GameObject player = Managers.Game.Spawn(Define.WorldObject.Player, "UnityChan"); Camera.main.gameObject.GetOrAddComponent <CameraController>().SetPlayer(player); //Managers.Game.Spawn(Define.WorldObject.Monster, "Knight"); GameObject go = new GameObject { name = "SpawningPool" }; SpawningPool pool = go.GetOrAddComponent <SpawningPool>(); pool.SetKeepMonsterCount(5); }
protected override void Init() { base.Init(); SceneType = Define.Scene.Game; //Managers.UI.ShowSceneUI<UI_Inven>(); gameObject.GetOrAddComponent <CursorController>(); GameObject player = Managers.Game.Spawn(Define.WorldObject.Player, "UnityChan"); Camera.main.gameObject.GetOrAddComponent <CameraController>().SetPlayer(player); //Managers.Game.Spawn(Define.WorldObject.Monster, "Knight"); GameObject go = new GameObject { name = "SpawningPool" }; SpawningPool pool = go.GetOrAddComponent <SpawningPool>(); pool.SetKeepMonsterCount(5); }
protected override void Init() { base.Init(); SceneType = Define.Scene.Game; Dictionary <int, Data.Stat> dict = Managers.Data.StatDict; gameObject.GetOrAddComponent <CursorController>(); GameObject player = Managers.Game.Spawn(Define.WorldObject.Player, "UnityChan"); Camera.main.gameObject.GetOrAddComponent <CameraController>().SetPlayer(player); GameObject go = new GameObject { name = "SpawningPool" }; SpawningPool pool = go.GetOrAddComponent <SpawningPool>(); pool.SetKeepMonsterCount(5); }