HeavenStudioPlus/Assets/Scripts/Games/DoubleDate/DoubleDateWeasels.cs
ev 8ccced19b6 Double Date (#366)
* 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>
2023-03-27 03:12:23 +00:00

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;
}
}
}