/// <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; }
/// <summary> /// /// </summary> void Awake() { UIReference = FindObjectOfType <UMW_UIReferences>(); m_Camera = FindObjectOfType <UMW_Camera>(); if (RequieredName) { GoToWindow(PlayerNameWindow); } else { GoToWindow(Windows[0].Name); } InstantiateLevels(); if (RainEffect != null) { RainEffect.SetActive(useRainEffect); } }