/// <summary> /// View타입에 맞게 끄고 켜준다 /// </summary> /// <param name="type">키고자 하는 타입</param> void ChangeInfoView(InfoViewType type) { CurInfoView = type; { for (int i = 0; i < InfoViewObj.Length; i++) { InfoViewObj[i].SetActive(i == (int)CurInfoView); } } }
/// <summary> /// 타입에 맞는 InfoViewObj[]리스트를 뱉어준다 /// </summary> /// <param name="type"></param> /// <returns></returns> GameObject GetViewObj(InfoViewType type) { return(InfoViewObj[(uint)type]); }