private void Start() { gun = FindObjectOfType <Gun>(); towerRing = FindObjectOfType <TowerRing>(); StartCoroutine(CanShoot()); counter = SceneController.Instance.ringCounter * 10; coins = counter; }
// Start is called before the first frame update void Start() { // gets the animator animator = GetComponent <Animator>(); // set the animation to bounce or not BounceBox(bouncingBox); towerRing = FindObjectOfType <TowerRing>(); }
public void DestroyRing(TowerRing ring) { rings.Remove(ring); }