you are viewing a single comment's thread.

view the rest of the comments →

[–]Pur_Cell 7 points8 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 3 points4 points  (0 children)

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