Exemple #1
0
        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;
            }
        }
Exemple #2
0
 public void SetHole(HoleData data)
 {
     m_Hole.SetHoleData(data);
 }
Exemple #3
0
 public void AddHole(HoleData data)
 {
     ListHoles.Add(data);
 }