Пример #1
0
        public static SmallEnemy CreateSmallEnemy(Hp hp)
        {
            var enemy = Instantiate(Resources.Load <SmallEnemy>(AssetPath.Enemies[EnemyType.Small]));

            enemy.Hp = hp;

            return(enemy);
        }
Пример #2
0
        public Enemy Create(Hp hp)
        {
            var enemy = Object.Instantiate(Resources.Load <SmallEnemy>(AssetPath.Enemies[EnemyType.Small]));

            enemy.SetHP(hp);

            return(enemy);
        }
Пример #3
0
 public void SetHP(Hp hp)
 {
     Hp = hp;
 }