mirror of
https://github.com/RHeavenStudio/HeavenStudio.git
synced 2025-06-12 12:17:37 +02:00
Karate Man started.
This commit is contained in:
30
Assets/Scripts/Games/KarateMan/KarateMan.cs
Normal file
30
Assets/Scripts/Games/KarateMan/KarateMan.cs
Normal file
@ -0,0 +1,30 @@
|
||||
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");
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user