I’ve started to go into deeper coding for my game, and once I started, my first problem was making a object enable it self from a trigger. This is my Script
using UnityEngine;
using System.Collections;
public class CreateObjects : MonoBehaviour {
public GameObject Prefab;
// Use this for initialization
void Start () {
if(GameObject.FindGameObjectsWithTag == ("Create")){
gameObject.SetActive(false);
}
}
void onTriggerEnter(Collision collision) {
if(GameObject.FindGameObjectsWithTag == ("Create")){
gameObject.SetActive(true);
}
}
}
I really would appreciate who ever helps me.