using System.Collections; using System.Collections.Generic; using UnityEngine; public class AnimatedBackground : MonoBehaviour { static AnimatedBackground instance; void Awake() { if (instance == null) { instance = this; DontDestroyOnLoad(instance); } else Destroy(gameObject); } }