check color of sprite on collision

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

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


Unfortunately game has stopped

Updated July 02, 2019 11:13 AM

How to animate objects in Unity 3D

Updated July 12, 2015 13:05 PM