static int get_Controller(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); BattleSystem.ObjectModule.UnitBase obj = (BattleSystem.ObjectModule.UnitBase)o; BattleSystem.ObjectModule.UnitController ret = obj.Controller; ToLua.PushObject(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index Controller on a nil value")); } }
public virtual void InitController() { Controller = new UnitController(this); }