Exemple #1
0
 /// <summary>
 ///初期化
 /// </summary>
 public void Initialize(Transform enemyRoot)
 {
     if (enemySpawn)
     {
         Enemy enemy = EnemyGenerator.Create(enemyType, enemyRoot);
         enemy.transform.position = new Vector3(gridPosition.x, gridPosition.y + 0.5f, gridPosition.z);
         navPoint.Add(transform);
         enemy.SetNavPoint(navPoint);
     }
 }