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;
 }
Exemplo n.º 2
0
    void Start()
    {
        debug  = false;
        radius = 0f;

        explosionRadius = gameObject.GetComponent <CircleCollider2D>();
        burstSpawner    = transform.GetComponentInParent <BurstSpawner>();
    }