// Update is called once per frame void Update() { CookieClicked?.Invoke(); TimesClicked?.Invoke(); CookiesEarned?.Invoke(); AutoClicker1Achievement?.Invoke(); }
protected virtual void OnCookieClicked() { CookieClicked?.Invoke(this, EventArgs.Empty); // Invoke event if any listeners are found //anim.Play(); // Play the onCookieClick animation TODO }