// Update is called once per frame
    void Update()
    {
        CookieClicked?.Invoke();

        TimesClicked?.Invoke();

        CookiesEarned?.Invoke();

        AutoClicker1Achievement?.Invoke();
    }
示例#2
0
    protected virtual void OnCookieClicked()
    {
        CookieClicked?.Invoke(this, EventArgs.Empty); // Invoke event if any listeners are found

        //anim.Play(); // Play the onCookieClick animation TODO
    }