mirror of
https://github.com/RHeavenStudioPlus/HeavenStudioPlus.git
synced 2024-12-03 06:47:31 +00:00
40 lines
787 B
C#
40 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;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|