void OnCollisionEnter(UnityEngine.Collision coll)
{
Debug.Log("COLLIDED");
if ( coll.gameObject.tag == "hazard" && coolD)
{
Debug.Log("DEDUCTED HP");
PlayerRb.AddForce(new Vector2(100,100));
Invoke("ResetCoolD", .4f);
}
}
i made some oncollisionenter code but whenever the condition is met it won't do what i tell it to do
is there anything wrong with the way i've set it out?