Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class LoadingScreen : MonoBehaviour
- {
- [SerializeField] private Text _description;
- [SerializeField] private Image _background;
- public void ShowLocationInfo(Location location)
- {
- _description.text = location.Description;
- _background.sprite = location.LoadingBackground;
- }
- public void Load(Location location)
- {
- SceneManager.LoadScene(location.SceneIndex);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment