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