private void Awake() { if (inst == null) { inst = this; } }
public void Setup(Destination currentDestination, MarkerScrollList currentScrollList, GameObject UIManager, MarkersManager currentMarkersManager) { coordinates = currentDestination.coordinates; //HERE nameLabel.text = currentDestination.destinationName; scrollList = currentScrollList; UIManagerObject = UIManager; markersManager = currentMarkersManager; saveButtonComponent = transform.Find("Save Button").GetComponent <Image>(); saveButtonComponent.color = Color.red; }
// Use this for initialization void Start() { mm = GetComponent <MarkersManager>(); }