The state of mind that you are in causes you to act in a certain way. Your actions will bear results. The ultimate result of all karmas and actions is state of mind. You are your state of mind.