private void Awake() { player = GameObject.FindGameObjectWithTag("Player"); go = GameObject.Find("Spawner"); spawnerScript = (BurstSpawner)go.GetComponent(typeof(BurstSpawner)); destroyEffect = go.GetComponent <BurstSpawner>().destroyEffect; cameraShake = go.GetComponent <BurstSpawner>().cameraShake; }
void Start() { debug = false; radius = 0f; explosionRadius = gameObject.GetComponent <CircleCollider2D>(); burstSpawner = transform.GetComponentInParent <BurstSpawner>(); }