void OnTriggerEnter2D (Collider2D other) //Make sure to put this out of Voids
{
if (other.gameObject.tag == "Object")
{
Debug.Log ("Collided");
}
void OnTriggerEnter2D(Collider2D col)
{
Debug.Log(col.gameObject.name + " : " + gameObject.name + " : " + Time.time);
spriteMove = -0.1f;
}
Unity Monobehavior Lifecycle methods start with a capital and C# methods are case-sensitive.
Therefore, the following methods need to be corrected to be used by Unity:
onTriggerEnter2D => OnTriggerEnter2D