풀링 매니저 생성 및 풀링 기능 구현
- 테스트 프리팹 삭제
This commit is contained in:
@@ -9,6 +9,11 @@ public class GameScene : BaseScene
|
||||
SceneType = Define.Scene.Game;
|
||||
|
||||
Managers.UI.ShowSceneUI<UI_Inven>();
|
||||
|
||||
for(int i = 0; i < 5; i++)
|
||||
{
|
||||
Managers.Resource.Instantiate("UnityChan");
|
||||
}
|
||||
}
|
||||
|
||||
public override void Clear()
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
using UnityEngine.SceneManagement;
|
||||
|
||||
@@ -7,7 +8,18 @@ public class LoginScene : BaseScene
|
||||
{
|
||||
base.Init();
|
||||
|
||||
SceneType = Define.Scene.Lobby;
|
||||
SceneType = Define.Scene.Login;
|
||||
|
||||
List<GameObject> list = new List<GameObject>();
|
||||
for(int i = 0; i < 5; i++)
|
||||
{
|
||||
list.Add(Managers.Resource.Instantiate("UnityChan"));
|
||||
}
|
||||
|
||||
foreach (GameObject obj in list)
|
||||
{
|
||||
Managers.Resource.Destroy(obj);
|
||||
}
|
||||
}
|
||||
|
||||
private void Update()
|
||||
|
||||
Reference in New Issue
Block a user