12345678910111213141516171819202122232425 |
- using System;
- using UnityEngine;
- public class SceneLoadUtil : ScriptableObject
- {
- public static void Load(string name)
- {
- GameMain.Instance.MainCamera.FadeOut(1f, false, null, true, default(Color));
- }
- public static void Load(string toSceneName, GameObject fadeoutPanel)
- {
- GameMain.Instance.MainCamera.FadeOut(3f, false, delegate
- {
- GameMain.Instance.LoadScene(toSceneName);
- }, true, default(Color));
- TweenAlpha.Begin(fadeoutPanel, 3f, 0f);
- }
- public static void Load(int number)
- {
- }
- private const float DURATION_TO_FADE = 3f;
- }
|