Esempio n. 1
0
 public HealthPack LoadHealthPack(string type, Vector2 position)
 {
     if (m_iGen == null)
         m_iGen = new ItemGenerator(m_lvl);
     if (type == null)
         type = "default";
     return m_iGen.GenerateHealthPack(type, position);
 }
Esempio n. 2
0
 public TimeBonus LoadTimeBonus(string type, Vector2 position)
 {
     if (m_iGen == null)
         m_iGen = new ItemGenerator(m_lvl);
     if (type == null)
         type = "default";
     return m_iGen.GenerateTimeBonus(type, position);
 }
Esempio n. 3
0
 public Gem LoadGem(string type, Vector2 position)
 {
     if (m_iGen == null)
         m_iGen = new ItemGenerator(m_lvl);
     if (type == null)
         type = "default";
     return m_iGen.GenerateGem(type, position);
 }