HeavenStudioPlus/Assets/Scripts/Games/KarateMan/KarateMan.cs

30 lines
685 B
C#
Raw Normal View History

2021-12-29 06:52:48 +00:00
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using RhythmHeavenMania.Util;
namespace RhythmHeavenMania.Games.KarateMan
{
public class KarateMan : Minigame
{
public GameObject Pot;
public static KarateMan instance { get; set; }
private void Awake()
{
instance = this;
}
public void Shoot(float beat)
{
GameObject pot = Instantiate(Pot);
pot.transform.parent = Pot.transform.parent;
pot.SetActive(true);
pot.GetComponent<Pot>().startBeat = beat;
Jukebox.PlayOneShotGame("karateman/objectOut");
}
}
}