Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- public class EnemyDamagedFlash : MonoBehaviour
- {
- [SerializeField] private float flashDuration;
- [SerializeField] private Color flashColor;
- [SerializeField] private int numberOfFlashes;
- private Sprite_Flash _spriteFlash;
- private void Awake()
- {
- _spriteFlash = GetComponent<Sprite_Flash>();
- }
- public void StartFlash()
- {
- _spriteFlash.StartFlash(flashDuration, flashColor, numberOfFlashes);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement