public CharChip CreateEnemyChip(EnemyChipType type)
        {
            var chip = this.pools[MapChipGroup.Enemy].Create <CharChip>(type.ToString());

            chip.Reset();

            chip.SetSprites(Resources.LoadAll <Sprite>(this.EnemyChipResouceMap[type]));
            chip.Sorting = SpriteSortingOrder.Enemy;

            return(chip);
        }
Beispiel #2
0
 public Props(Vector2Int coord, EnemyChipType chipType, Status.Props statusProps)
 {
     Coord       = coord;
     ChipType    = chipType;
     StatusProps = statusProps;
 }