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

16 lines
299 B
C#
Raw Permalink 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>();
2024-04-21 13:20:30 +02:00
sp.enabled = true;
2024-04-21 10:48:37 +02:00
2024-04-21 06:20:36 +02:00
animator = GetComponent<Animator>();
animator.SetTrigger("start1");
}
}