init
This commit is contained in:
17
Assets/Scripts/Loader.cs
Normal file
17
Assets/Scripts/Loader.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
using System;
|
||||
using UnityEngine;
|
||||
using System.Collections;
|
||||
|
||||
public class Loader : MonoBehaviour
|
||||
{
|
||||
|
||||
public GameObject gameManager;
|
||||
|
||||
void Awake()
|
||||
{
|
||||
if (GameManager.Instance == null)
|
||||
{
|
||||
Instantiate(gameManager);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user