public static SmallEnemy CreateSmallEnemy(Hp hp) { var enemy = Instantiate(Resources.Load <SmallEnemy>(AssetPath.Enemies[EnemyType.Small])); enemy.Hp = hp; return(enemy); }
public Enemy Create(Hp hp) { var enemy = Object.Instantiate(Resources.Load <SmallEnemy>(AssetPath.Enemies[EnemyType.Small])); enemy.SetHP(hp); return(enemy); }
public void SetHP(Hp hp) { Hp = hp; }