// Start is called before the first frame update void Start() { rigidBody = GetComponent <Rigidbody2D>(); mousesCounter = GameObject.FindObjectOfType <MousesCounter>(); animator = transform.GetChild(0).GetComponent <Animator>(); audioSource = GetComponent <AudioSource>(); scoreCounter = GameObject.FindObjectOfType <ScoreCounter>(); }
// Start is called before the first frame update void Start() { audioSource = GetComponent <AudioSource>(); mousesCounter = GameObject.FindObjectOfType <MousesCounter>(); }
// Start is called before the first frame update void Start() { mousesCounter = GameObject.FindObjectOfType <MousesCounter>(); scoreCounter = GameObject.FindObjectOfType <ScoreCounter>(); }