using System.Collections;
using UnityEngine;
using UnityEngine.UI;
namespace OctoCore.Navigation
{
///
/// Handles fade in/out transitions for scene loading and teleportation.
///
public class OctoSceneFade : MonoBehaviour
{
private Canvas _canvas;
private Image _fadeImage;
private IEnumerator fadeOutCoroutine;
private IEnumerator fadeInCoroutine;
///
/// Initialize the fade canvas and image.
///
public void Initialize()
{
// Create canvas
_canvas = gameObject.AddComponent