﻿using UnityEngine;
using System.Collections;
using System.Collections.Generic;

namespace Nostalgia.Example
{
	[AddComponentMenu("Nostalgia/Example/Stage")]
	public sealed class Stage : MonoBehaviour
	{
		static List<Stage> s_Stages = new List<Stage>();

		public static Stage current
		{
			get
			{
				return s_Stages.Count > 0 ? s_Stages[0] : null;
			}
		}

		public Map mainMap;
		public Color backgroundColor;
		public Transform background;
		public float backgroundSpeed = 0.1f;
		public List<Transform> doors;
		public AudioClip bgm;

		void Awake()
		{
			s_Stages.Add(this);
		}

		void OnDestroy()
		{
			s_Stages.Remove(this);
		}
	}
}
