protected override void Start() { base.Start(); player = GameObject.FindGameObjectWithTag("Player").transform; pathIndex = 0; thisRB = GetComponent <Rigidbody2D>(); thisPattern = GetComponent <BulletPatternScript>(); thisPattern.SpawnBullets(); }
// Use this for initialization void Start() { pattern = gameObject.GetComponent <BulletPatternScript>(); pattern.pause = true; }