A man has appeared in court after being charged with assault and making racially abusive comments to a worker at a Troon pub.