public void Setup(GameObject modelPrefab, string name, string explanation, ContentRelated state, Transform respawnPose) { m_Name = name; m_Explanation = explanation; m_ContentRelatedState = state; var model = Instantiate(modelPrefab, transform); m_RespawnPose = respawnPose; ResetPose(); }
public bool CheckContent(ContentRelated state) { if (m_CurrentContentCount > m_ContentCount) { return(false); } if (state == ContentRelatedState) { StartCoroutine(RiseFlag()); return(true); } return(false); }