// Start is called before the first frame update void Start() { miniMap = FindObjectOfType <MiniMap>(); miniMap.AddMapIconModel(gameObject, image); }