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 for Object.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.