mirror of
https://github.com/RHeavenStudioPlus/HeavenStudioPlus.git
synced 2024-11-30 13:33:07 +00:00
58 lines
No EOL
2.2 KiB
C#
58 lines
No EOL
2.2 KiB
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using UnityEngine;
|
|
|
|
using HeavenStudio.Util;
|
|
|
|
namespace HeavenStudio.Games.Scripts_ForkLifter
|
|
{
|
|
public class ForkLifterHand : MonoBehaviour
|
|
{
|
|
public SpriteRenderer fastSprite;
|
|
|
|
public Sprite[] fastSprites;
|
|
|
|
public void CheckNextFlick()
|
|
{
|
|
// var allPlayerActions = EventCaller.GetAllInGameManagerList("forkLifter", new string[] { "gulp", "sigh", "prepare" });
|
|
// var allPlayerActions = EventCaller.GetAllPlayerEntities("forkLifter");
|
|
// int currentPlayerEvent = GameManager.instance.currentEvent - EventCaller.GetAllPlayerEntitiesExceptBeforeBeat("forkLifter", Conductor.instance.songPositionInBeats).Count;
|
|
|
|
/* if (currentPlayerEvent < allPlayerActions.Count)
|
|
{
|
|
switch (allPlayerActions[currentPlayerEvent].datamodel.Split('/')[1])
|
|
{
|
|
case "pea":
|
|
ForkLifter.instance.peaPreview.sprite = ForkLifter.instance.peaSprites[0];
|
|
fastSprite.sprite = fastSprites[0];
|
|
break;
|
|
case "topbun":
|
|
ForkLifter.instance.peaPreview.sprite = ForkLifter.instance.peaSprites[1];
|
|
fastSprite.sprite = fastSprites[0];
|
|
break;
|
|
case "burger":
|
|
ForkLifter.instance.peaPreview.sprite = ForkLifter.instance.peaSprites[2];
|
|
fastSprite.sprite = fastSprites[1];
|
|
break;
|
|
case "bottombun":
|
|
ForkLifter.instance.peaPreview.sprite = ForkLifter.instance.peaSprites[3];
|
|
fastSprite.sprite = fastSprites[0];
|
|
break;
|
|
}
|
|
}
|
|
else
|
|
{
|
|
ForkLifter.instance.peaPreview.sprite = null;
|
|
}*/
|
|
|
|
// will fix later
|
|
}
|
|
|
|
public void Prepare()
|
|
{
|
|
Jukebox.PlayOneShotGame("forkLifter/flickPrepare");
|
|
GetComponent<Animator>().Play("Hand_Prepare", 0, 0);
|
|
}
|
|
}
|
|
} |