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

16 lines
300 B
C#
Raw Normal View History

2024-04-21 06:20:36 +02:00
using UnityEngine;
public class StartSceneTransition : MonoBehaviour
{
2024-04-21 10:48:37 +02:00
2024-04-21 06:20:36 +02:00
Animator animator;
void Start()
{
2024-04-21 10:48:37 +02:00
SpriteRenderer sp = GetComponent<SpriteRenderer>();
sp.enabled = false;
2024-04-21 06:20:36 +02:00
animator = GetComponent<Animator>();
animator.SetTrigger("start1");
}
}