using UnityEngine;
using System.Collections;
public class Trap : MonoBehaviour {
public GameObject enemy1;
void OnTriggerEnter(Collider other){
if(other.gameObject.CompareTag("Player")){
enemy1.SetActive(true);
}
}
}
using UnityEngine;
using System.Collections;
public class Trap : MonoBehaviour {
public GameObject enemy1;
void OnTriggerEnter(Collider other){
if(other.gameObject.CompareTag("Player")){
enemy1.SetActive(true);
}
}
}