public void ServerToClientLua(string luafunc) { if (!string.IsNullOrEmpty(luafunc) && serverToClientLua != null) { serverToClientLua.Action <string>(luafunc); } else { Debug.LogError("ServerToClientLua-- failed" + luafunc); } }