Noob question: How do I reference a definition from a diffrent class? (using xamarin)

I want to use a definition from a class called gamescene.cs in mainactivity.cs. But gamescene.definition does not work. The definition is a float but if i change it to a public float im getting errors throughout my code telling me im missing "}" and stuff like that.

Please help I've been stuck on this for a couple of days.

by ScaredTurtles via /r/csharp

Leave a Reply