MonoBehaviour
using UnityEngine; using System.Collections; public class ExampleClass : MonoBehaviour { private GameObject target; void Awake() { target = GameObject.FindWithTag("Player"); } }