SetActive not working

When I collide with the cube in with the OnTrigger it does not load the false active cube`using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class AniamtionTirgger : MonoBehaviour {

public new GameObject gameObject;
    void OnCollisionEnter(Collision collision)

{
    if (collision.gameObject.tag == "Player")
    {

        gameObject.SetActive(true);
    }
}

}
`

If the object is not active it will not collide with other colliders.
Perhaps put the collider and script on a different object and instead set the intended gameObject active from a public reference.

// before code
public GameObject setObject;

// after collision
setObject.SetActive(true);

Make sure you have a rigidbody on the object you are stepping into then apply this code like this

public GameObject myNewObject; // drag the object you want to step in here

void OnCollisionEnter(Collision col){
   if(col.gameObject.tag == "Player"){
      myNewObject.SetActive(false);
  }
}