Add main menu, loding screen and loding logic
This commit is contained in:
parent
0c71d06fb8
commit
2ffb285e0b
15 changed files with 3176 additions and 525 deletions
20
Assets/Scripts/LoaderCallback.cs
Normal file
20
Assets/Scripts/LoaderCallback.cs
Normal file
|
@ -0,0 +1,20 @@
|
|||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
public class LoaderCallback : MonoBehaviour
|
||||
{
|
||||
|
||||
private bool isFirstUpdate = true;
|
||||
|
||||
private void Update()
|
||||
{
|
||||
if (isFirstUpdate)
|
||||
{
|
||||
isFirstUpdate = false;
|
||||
|
||||
Loader.LoaderCallback();
|
||||
}
|
||||
}
|
||||
|
||||
}
|
Reference in a new issue