//Jimmy Vegas Unity Tutorial //This script is for the secret area using System.Collections; using System.Collections.Generic; using UnityEngine; public class Floor001A : MonoBehaviour { public GameObject movableWall; void OnTriggerEnter(Collider other) { movableWall.GetComponent().enabled = true; this.gameObject.GetComponent().enabled = false; } }