I am trying to have a de-activated object activate OnTriggerEnter. I’m not sure what I did wrong any help would be much appreciated!
using UnityEngine;
using System.Collections;
public class SnowLayer : MonoBehaviour {
// Use this for initialization
void Start () {
}
// Update is called once per frame
void Update ()
{
gameObject.active = false;
}
void OnTriggerEnter(Collider other)
{
if (other.tag == "Snowstorm")
{
gameObject.active = true;
}
}
}