I tried everything and still wont work ;-;
using UnityEngine;
using System.Collections;
public class collision : MonoBehaviour {
void OnTriggerEnter2D (Collider2D other)
{
if (other.gameObject.tag == "Player")
{
Debug.Log ("why wont you work ;_;");
}
}
}