Is there any way to change the access to my C# object methods in Lua by turning two dots into one? I want to change this:
Object:DoSomething();
Into this:
Object.DoSomething();
Without getting any errors. Any ideas? Thanks in advance.
Is there any way to change the access to my C# object methods in Lua by turning two dots into one? I want to change this:
Object:DoSomething();
Into this:
Object.DoSomething();
Without getting any errors. Any ideas? Thanks in advance.
The two lines do different things.
Object:DoSomething()is syntax sugar forObject.DoSomething(Object). It's what turns a regular object lookup+function call into a method call.So no, there's no way to do this.