protected void Start() { if(WavMn == null) WavMn = FindObjectOfType<WaveMan>(); WavMn.enemySpawned(); Speed = SpeedWander; base.Start(); //Target = FindObjectOfType<PlayerController>().Motor; Rep = GetComponent<Repulsor>(); Vis = GetComponentInChildren<Vision>(); Vis.Recv = this; targetWP(); }
protected void Start() { if (WavMn == null) { WavMn = FindObjectOfType <WaveMan>(); } WavMn.enemySpawned(); Speed = SpeedWander; base.Start(); //Target = FindObjectOfType<PlayerController>().Motor; Rep = GetComponent <Repulsor>(); Vis = GetComponentInChildren <Vision>(); Vis.Recv = this; targetWP(); }
void Awake() { SpawnTimer = SpawnRate; Trnsfrm = transform; WMan = FindObjectOfType <WaveMan>(); }
void Awake() { SpawnTimer = SpawnRate; Trnsfrm = transform; WMan = FindObjectOfType<WaveMan>(); }