示例#1
0
        public EnemyController GetEnemyController(EnemyType enemyType)
        {
            EnemyModel      enemyModel = GetEnemyModels(enemyType);
            EnemyController controller = EnemyObjectPooler.Instance.GetComponent <EnemyObjectPooler>().GetEnemyController(enemyView, enemyModel);

            return(controller);
        }
示例#2
0
 public EnemyController(EnemyView enemyView, EnemyModel enemyModel)
 {
     EnemyView  = GameObject.Instantiate <EnemyView>(enemyView);
     EnemyModel = enemyModel;
     SpawnPos   = EnemyView.transform.position;
     EnemyView.SetController(this);
 }
示例#3
0
        public void ResetModel()
        {
            EnemyModel Default = new EnemyModel(EnemyService.Instance.enemyScriptables);

            EnemyModel = Default;
        }
示例#4
0
 private void TestingEnemy()
 {
     EnemyModel      enemyModel = GetEnemyModels(EnemyType.Enemytype3);
     EnemyController controller = EnemyObjectPooler.Instance.GetComponent <EnemyObjectPooler>().GetEnemyController(enemyView, enemyModel);
 }