예제 #1
0
 private void Awake()
 {
     if (inst == null)
     {
         inst = this;
     }
 }
예제 #2
0
 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>();
 }