3DTD/Assets/Scripts/UI/StartSceneTransition.cs

16 lines
299 B
C#

using UnityEngine;
public class StartSceneTransition : MonoBehaviour
{
Animator animator;
void Start()
{
SpriteRenderer sp = GetComponent<SpriteRenderer>();
sp.enabled = true;
animator = GetComponent<Animator>();
animator.SetTrigger("start1");
}
}