how to make a public image in unity code example
Example: public image unity
using UnityEngine; using System.Collections; using UnityEngine.UI; public class Radar : MonoBehaviour { public Image Arrow; void OnTriggerEnter( Collider other) { if (other.gameObject.tag == "Enemy") Arrow.gameObject.SetActive(true); } }