Exemple #1
0
        protected C86Entry CreateEntry(Vector2Int pos, WheelBase slot)
        {
            C86Entry entry = Instantiate(entryPF);

            entry.Initialize(unitContainer, pos.x, pos.y, entryRatio.x, entryRatio.y, sequenceDuration / 2f, entryFadeDelay);
            entry.SetContent(slot.name);

            return(entry);
        }
Exemple #2
0
        protected override UnitRenderer MakeUnit(int order, WheelBase slot)
        {
            Vector2Int pos   = FindEntryPosition();
            C86Entry   entry = CreateEntry(pos, slot);

            SaveEntry(pos, entry);

            return(entry);
        }
Exemple #3
0
        protected void SaveEntry(Vector2Int pos, C86Entry entry)
        {
            if (entryDict.ContainsKey(pos))
            {
                if (entryDict[pos] != null)
                {
                    Destroy(entryDict[pos].gameObject);
                }

                entryDict[pos] = entry;
            }
            else
            {
                entryDict.Add(pos, entry);
            }
        }