void Start() { EnvLua = new LuaEnv(); EnvLua.DoString("require 'CCallLua'"); ShipClass myShip = EnvLua.Global.Get <ShipClass>("ship"); Debug.Log("by class"); Debug.Log("name "+ myShip.name); Debug.Log("year "+ myShip.year); Debug.Log("damage "+ myShip.damage); myShip.Fire(666); }