private void RaiseEvent(ActionType type, object data = null) { if (onActionEvent != null) { var info = ActionInfo.New(type, player); info.data = data; onActionEvent(info); } }