예제 #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);
 }
예제 #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);
 }
예제 #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);
 }