You've already forked Darklings-FightingGame
mirror of
https://github.com/izzy2lost/Darklings-FightingGame.git
synced 2026-03-10 11:35:19 -07:00
20 lines
444 B
C#
20 lines
444 B
C#
using UnityEngine;
|
|
|
|
public class AssistAnimationEvents : MonoBehaviour
|
|
{
|
|
[SerializeField] private Assist _assist = default;
|
|
[SerializeField] private PlayerAnimationEvents _playerAnimationEvents = default;
|
|
|
|
|
|
public void ProjectileAnimationEvent(AnimationEvent animationEvent)
|
|
{
|
|
_assist.Projectile();
|
|
_playerAnimationEvents.StartFrameCount(animationEvent);
|
|
}
|
|
|
|
public void DisappearAnimationEvent()
|
|
{
|
|
_assist.IsOnScreen = false;
|
|
}
|
|
}
|