How to change the color of a object, without simultaneously changing it for others

I want to change the color of an object, but after doing it, the color of an another object with the same material changes to.
How can i change individualy the colour of two objects with the same material, or what could I do instead?

You have to create separate materials. Either create them in the editor or copy the shared material via script at runtime and apply the copies to your object, where you then can change the color.