2023-10-10 15:03:37 +03:00
|
|
|
using System.Collections;
|
|
|
|
using System.Collections.Generic;
|
|
|
|
using UnityEngine;
|
|
|
|
|
|
|
|
public class InitializeController : MonoBehaviour
|
|
|
|
{
|
|
|
|
[RuntimeInitializeOnLoadMethod(RuntimeInitializeLoadType.BeforeSceneLoad)]
|
|
|
|
public static void Init()
|
|
|
|
{
|
|
|
|
GameObject main = GameObject.Instantiate(Resources.Load("Initialize")) as GameObject;
|
|
|
|
GameObject.DontDestroyOnLoad(main);
|
2023-10-17 12:37:34 +03:00
|
|
|
Debug.Log("Initialize ");
|
2023-10-10 15:03:37 +03:00
|
|
|
}
|
|
|
|
}
|