I have some background lua codes and I load them on each startup, They work fine, But Is there any way I can convert them to C#?
Here Is my meta table codes:
player = {}
player.__index = player
function player:Add(name)
return setmetatable({name = name}, player)
end
function player:Nick()
return self.name
end
It works fine, Here Is how currently my codes work:
print(ply:Nick())
Currently I search a Player.cs object using a void at my registering lua functions code, I don't have any special void or function on my C# code that has Player object on It, But I want to change all of them to Player object, Also Is there any way I can use the Player.cs voids/strings or anything from lua without registerting them? Player.cs objects are non-static.