Ejemplo n.º 1
0
 private void cleanupPanel()
 {
     for (int i = this.m_dungeonEncounterCells.Count - 1; i >= 0; i--)
     {
         DungeonEncounterCell item = this.m_dungeonEncounterCells[i];
         this.m_dungeonEncounterCells.Remove(item);
         PlayerView.Binder.DungeonEncounterCellPool.returnObject(item);
     }
 }
Ejemplo n.º 2
0
        private DungeonEncounterCell addDungeonEncounterCellToPanel(Transform parentTm, Item item, Sprite sprite, int rarityMax, bool isRandom, int rankRequirement, bool rankReached)
        {
            DungeonEncounterCell cell = PlayerView.Binder.DungeonEncounterCellPool.getObject();

            cell.transform.SetParent(parentTm);
            cell.transform.localScale    = Vector3.one;
            cell.transform.localPosition = Vector3.zero;
            this.m_dungeonEncounterCells.Add(cell);
            cell.gameObject.SetActive(true);
            cell.initialize(item, sprite, rarityMax, isRandom, rankRequirement, rankReached);
            return(cell);
        }