puzzle-jam-ii/Assets/Scripts/AnimatedBackground.cs
2020-06-18 15:17:15 -05:00

18 lines
367 B
C#

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);
}
}