Example #1
0
 private void Start()
 {
     gun       = FindObjectOfType <Gun>();
     towerRing = FindObjectOfType <TowerRing>();
     StartCoroutine(CanShoot());
     counter = SceneController.Instance.ringCounter * 10;
     coins   = counter;
 }
Example #2
0
    // 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);
 }