HeavenStudioPlus/Assets/Scripts/Games/FanClub/NtrIdolFan.cs

32 lines
698 B
C#
Raw Normal View History

2022-03-15 00:54:54 +00:00
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using System;
using Starpelly;
using HeavenStudio.Util;
namespace HeavenStudio.Games.Scripts_FanClub
{
public class NtrIdolFan : MonoBehaviour
{
[Header("References")]
public Animator animator;
public Animator headAnimator;
public ParticleSystem fanClapEffect;
bool player = false;
bool stopBeat = false;
public void Bop()
{
if (animator.IsAnimationNotPlaying() && !stopBeat)
animator.Play("FanBeat", 0, 0);
}
public void ClapParticle()
{
fanClapEffect.Play();
}
}
}