void Start() { startTime = Time.time; wait = Random.Range(2.0f, 10.0f); launcher = GetComponentInChildren <AALauncher>(); launchTransform = launcher.GetComponent <Transform>(); }
void Start() { startTime = Time.time; wait = Random.Range(minWaitTime, maxWaitTime); launcher = GetComponentInChildren <AALauncher>(); launchTransform = launcher.GetComponent <Transform>(); laserAim = GetComponentInChildren <LaserAim>(); }