Quantcast
Channel: Unity Forum
Viewing all articles
Browse latest Browse all 1466670

Enemy spawner script

$
0
0
So I have a script that spawns enemies around me but after a few seconds basically just their sprites spawn without colliders or ai. How could I fix this?
Here is the spawner script:
Code (CSharp):
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4.  
  5. public class EnemySpawner : MonoBehaviour
  6. {
  7.     [SerializeField]
  8.     private GameObject Tatar1Prefab;
  9.  
  10.     [SerializeField]
  11.     private float Tatar1Interval = 3f;
  12.  
  13.  
  14.  
  15.     // Start is called before the first frame update...
Enemy spawner script

Viewing all articles
Browse latest Browse all 1466670

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>