Introducing the UI and ToastManager
This commit is contained in:
25
Assets/Scripts/UI/Intro.cs
Normal file
25
Assets/Scripts/UI/Intro.cs
Normal file
@@ -0,0 +1,25 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
public class Intro : MonoBehaviour {
|
||||
|
||||
[SerializeField]
|
||||
private List<ToastMessage> messages;
|
||||
[SerializeField]
|
||||
private UIManager uiManager;
|
||||
|
||||
// Use this for initialization
|
||||
void Start () {
|
||||
foreach( ToastMessage msg in messages)
|
||||
{
|
||||
msg.SetUIManager(uiManager);
|
||||
uiManager.QueueMessage(msg);
|
||||
}
|
||||
}
|
||||
|
||||
// Update is called once per frame
|
||||
void Update () {
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user