18 lines
367 B
C#
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);
|
|
}
|
|
}
|