mirror of
https://github.com/RHeavenStudioPlus/HeavenStudioPlus.git
synced 2024-11-11 04:05:11 +00:00
32 lines
698 B
C#
32 lines
698 B
C#
|
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();
|
||
|
}
|
||
|
}
|
||
|
}
|