You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
저도 자꾸 비공개가 되는데.. 뭐때문에 이러는지 키워드만이라도 알려주실 수 없나요? ㅠㅠ
Username: @justina21
Title :[Review] Dropout: A Simple Way to Prevent Neural Networks from Overfitting
클래스 설명
먼저 Managers 스크립트에 PoolManager를 추가한다.
(추가하는 방법은
Link :: System - Managers
페이지 참조)로직설명
CreatePool
함수 호출Dictionary에 이미 같은 이름의 Pool이 있는지 체크 후 있다면 리턴
new Pool 생성
Pool에 이름을 프리팹의 Name, 프리팹을 GameObject로 초기화
Pool을 PoolManager Dictionary의 Add
생성 콜백
Delete
함수 호출Dictionary에 Pool이 있는지 체크
있다면 Pool의
Clear
함수 호출Clear
종료 후 dictionary 삭제Get 함수 호출
dictionary에 이미 같은 이름의 Pool이 있는지 체크
있으면 그 Pool의 Get함수 실행 후 리턴 된 GameObject 값 반환
Push 함수 호출
dictionary에 Pool이 있는지 체크
있다면 그 Pool에 오브젝트를 넣어주고
True
반환없다면
false
반환시도
Create에 필요한 프리팹 오브젝트를 어드레서블로 로드하려니 비동기 로드다 보니
프리팹이 로드 되기 전 프리팹 변수가 Create로 들어가져서 실패
동기로 호출하자니 도중에 게임이 멈추는 현상이 일어날 것 같아서 포기
The text was updated successfully, but these errors were encountered: