17 lines
240 B
C#
17 lines
240 B
C#
|
using UnityEngine;
|
||
|
|
||
|
public class RJShroomBounce : MonoBehaviour
|
||
|
{
|
||
|
private Animator shroomAnimator;
|
||
|
|
||
|
public void Start()
|
||
|
{
|
||
|
shroomAnimator = GetComponent<Animator>();
|
||
|
}
|
||
|
|
||
|
public void Bounce()
|
||
|
{
|
||
|
shroomAnimator.Play("Bounce", 0);
|
||
|
}
|
||
|
}
|