check color of sprite on collision

by Laurenz Kaml   Last Updated October 09, 2019 18:13 PM

So I am trying on collision to check the color of 2 sprites. The one which is the on the script is attached to and another one. Here is the 2d Oncollision() Method

thanks,

public class borderdownup : MonoBehaviour
{

    void OnCollisionEnter2D(Collision2D col)
    {

    }
}
Tags : unity c#


Related Questions


Updated July 02, 2019 11:13 AM

Updated July 12, 2015 13:05 PM

Updated July 13, 2015 13:05 PM