mirror of
https://github.com/RHeavenStudioPlus/HeavenStudioPlus.git
synced 2024-11-10 11:45:09 +00:00
8ccced19b6
* Got the inputs and audio in * Fixed some things * kick anim * more stuff * anim stuff * particle mistake oops * Oops. I am sorry * Implemented visual stuff * Made animations scaled to be faster * Fixes * lots of anims * More anims implemented --------- Co-authored-by: Rapandrasmus <78219215+Rapandrasmus@users.noreply.github.com> Co-authored-by: minenice55 <star.elementa@gmail.com>
39 lines
787 B
C#
39 lines
787 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
using HeavenStudio.Util;
|
|
|
|
namespace HeavenStudio.Games.Scripts_DoubleDate
|
|
{
|
|
public class DoubleDateWeasels : MonoBehaviour
|
|
{
|
|
bool canBop = true;
|
|
Animator anim;
|
|
private DoubleDate game;
|
|
|
|
void Awake()
|
|
{
|
|
game = DoubleDate.instance;
|
|
anim = GetComponent<Animator>();
|
|
}
|
|
|
|
public void Bop()
|
|
{
|
|
if (canBop)
|
|
{
|
|
anim.DoScaledAnimationAsync("WeaselsBop", 1f);
|
|
}
|
|
}
|
|
|
|
public void Happy()
|
|
{
|
|
anim.DoScaledAnimationAsync("WeaselsHappy", 1f);
|
|
}
|
|
|
|
public void ToggleBop()
|
|
{
|
|
canBop = !canBop;
|
|
}
|
|
}
|
|
}
|
|
|