void Main() { EnemyBase boss = EnemySimpleFactory.CreateEnemy("Boss"); Instantiate(Boss, new Vector3(0, 4, 0), Quaternion.identity); // boss.transform.position = new Vector3(0, 4, 0); }
private void Update() { timer += Time.deltaTime; if (timer > 5) { EnemyBase normalenemy1 = EnemySimpleFactory.CreateEnemy("NormalEnemy"); Instantiate(NormalEnemy, new Vector3(-4, 4, 0), Quaternion.identity); timer = 0; } }