public void SetHoleData(HoleData data) { m_HoleData = data; switch (m_HoleData.TypeHole) { case HoleData.ETypeHole.NONE: m_HoleParticles.SetActive(true); break; case HoleData.ETypeHole.PORTAL: m_HolePortalParticles[Random.Range(0, m_HolePortalParticles.Length)].SetActive(true); break; } }
public void SetHole(HoleData data) { m_Hole.SetHoleData(data); }
public void AddHole(HoleData data) { ListHoles.Add(data); }