How can i detect/check color of sprites ?
i want to check/detect color of sprites like . i dropped color on them with code if i select 2 sprites with same color attack should not be launched, if i am player red and other is player green, first i have to select my sprite(red)and the enemy sprite(green), if i select sprites with same color attack should not be launched i want something like this , i don't know proper code i am new to unity C#
if (sprite1.color && sprite2.color == red`)
{
debug.log ("you cannot launch attack")
}
if (sprit`enter code here`e1.color && sprite2.color != red)
{
Application.LoadLevel(attack);
}
Comment