Exemplo n.º 1
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="info"></param>
 public void Init(UMW_LevelInfo info)
 {
     UIReference          = FindObjectOfType <UMW_UIReferences>();
     cacheInfo            = info;
     ImagePreview.sprite  = info.PreviewImage;
     TitleText.text       = info.DisplayLevelName;
     DescriptionText.text = info.Description;
 }
Exemplo n.º 2
0
 /// <summary>
 ///
 /// </summary>
 public void SetSelectLevel(UMW_LevelInfo info)
 {
     cacheLevelInfo            = info;
     LevelPreviewImage.sprite  = info.PreviewImage;
     TitleLevelText.text       = info.DisplayLevelName;
     DescriptionLevelText.text = info.Description;
     PlayButton.SetActive(true);
     playButtonScript.interactable = !info.Locked;
     playButtonScript.GetComponentInChildren <Text>().text = info.Locked ? "Locked" : "Play";
 }