UnityScripterAI
Discord ↗
Link Copied to Clipboard
×
"Find Game Object With Tag"
using UnityEngine; using System.Collections; public class FindGameObjectwithTag : MonoBehaviour { public GameObject respawnPrefab; public GameObject respawn; void Start() { if (respawn == null) respawn = GameObject.FindWithTag("Respawn"); Instantiate(respawnPrefab, respawn.transform.position, respawn.transform.rotation); } }