I have a script to control the player simply moves Left, move right, etc… but the animation when winning, losing, or Light, just put it on the animation and animator and no script for it.
I wanted to ask. if player enter at the collider, how to call animation light ?
void OnTriggerEnter2D(Collider2D theCollider)
{
try
{
// how can i call animation light //
}
catch { /*On error do nothing*/ }
}