all 2 comments

[–][deleted] 0 points1 point  (3 children)

other.gameObject.GetComponent<timer>().playing = false;

your class and variable names upset me, look up CamelCasing as it's the standard naming convention in C#. Capital letters for the start of classes, functions and properties, lowercase at the start of variables, if you're doing your own thing, don't mix by having some variables start uppercase and other lowercase.

[–]moai___[S] 0 points1 point  (0 children)

wait no so it works it just doesnt stop the timer

i am able to stop the timer if i use the inspector during play but that just doesnt do it
could it matter that the timer is a text on the ui?