public EnemyController GetEnemyController(EnemyType enemyType) { EnemyModel enemyModel = GetEnemyModels(enemyType); EnemyController controller = EnemyObjectPooler.Instance.GetComponent <EnemyObjectPooler>().GetEnemyController(enemyView, enemyModel); return(controller); }
public EnemyController(EnemyView enemyView, EnemyModel enemyModel) { EnemyView = GameObject.Instantiate <EnemyView>(enemyView); EnemyModel = enemyModel; SpawnPos = EnemyView.transform.position; EnemyView.SetController(this); }
public void ResetModel() { EnemyModel Default = new EnemyModel(EnemyService.Instance.enemyScriptables); EnemyModel = Default; }
private void TestingEnemy() { EnemyModel enemyModel = GetEnemyModels(EnemyType.Enemytype3); EnemyController controller = EnemyObjectPooler.Instance.GetComponent <EnemyObjectPooler>().GetEnemyController(enemyView, enemyModel); }