public void OnButtonClick()
    {
        audioSource.PlayOneShot(level.sound);
        cooldown = level.cooldownTime;
        level.GrantActionPoints(click_count++);

        if (database != null)
        {
            database.actions[model.index].clicks = click_count;
        }


        if (clickEvent != null)
        {
            clickEvent.Raise(level);
        }
    }
Beispiel #2
0
 private void OnTriggerEnter2D(Collider2D collision)
 {
     actionEvent.Raise(this);
 }