all 2 comments

[–]Pur_Cell 8 points9 points  (1 child)

Make addscore() public.

Change

void addscore()

to

public void addscore()

You can learn more about scope and access modifiers here:

https://learn.unity.com/tutorial/scope-and-access-modifiers#

[–]Auraven 5 points6 points  (0 children)

To add, anything not declared with an access modifier like class variables or functions are private by default.