mirror of
https://github.com/RHeavenStudio/HeavenStudio.git
synced 2025-06-12 11:57:40 +02:00
Logo upload + starting Spaceball
This commit is contained in:
@ -38,6 +38,7 @@ namespace RhythmHeavenMania
|
||||
|
||||
if (PlayerInput.Pressed())
|
||||
{
|
||||
Cursor.visible = false;
|
||||
Circle.transform.DOScale(0, 0.5f).SetEase(Ease.OutExpo);
|
||||
InnerCircle.SetActive(true);
|
||||
outerCircleTween.Kill();
|
||||
|
@ -47,6 +47,7 @@ namespace RhythmHeavenMania
|
||||
{
|
||||
SongPosBeats.text = $"SongPosBeats: {Conductor.instance.songPositionInBeats}";
|
||||
BPM.text = $"BPM: {Conductor.instance.songBpm}";
|
||||
if (GameManager.instance.Beatmap.entities.Count > 0)
|
||||
if (GameManager.instance.currentEvent - 1 >= 0)
|
||||
{
|
||||
currEvent.text = $"CurrentEvent: {GameManager.instance.Beatmap.entities[GameManager.instance.currentEvent - 1].datamodel}";
|
||||
|
@ -44,8 +44,6 @@ namespace RhythmHeavenMania.Games.ForkLifter
|
||||
|
||||
float normalizedBeat = Conductor.instance.GetLoopPositionFromBeat(startBeat, 2f);
|
||||
|
||||
print(normalizedBeat + " " + Minigame.PerfectTime());
|
||||
|
||||
// Early State
|
||||
if (normalizedBeat > Minigame.EarlyTime() && normalizedBeat < Minigame.PerfectTime() && estate <= 1)
|
||||
{
|
||||
|
8
Assets/Scripts/Games/Spaceball.meta
Normal file
8
Assets/Scripts/Games/Spaceball.meta
Normal file
@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 6ded9b1b9eac06d4687e8473769baced
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
16
Assets/Scripts/Games/Spaceball/Spaceball.cs
Normal file
16
Assets/Scripts/Games/Spaceball/Spaceball.cs
Normal file
@ -0,0 +1,16 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
using RhythmHeavenMania.Util;
|
||||
|
||||
namespace RhythmHeavenMania.Games.Spaceball
|
||||
{
|
||||
public class Spaceball : Minigame
|
||||
{
|
||||
private void Start()
|
||||
{
|
||||
Debug.Log("Spaceball");
|
||||
}
|
||||
}
|
||||
}
|
11
Assets/Scripts/Games/Spaceball/Spaceball.cs.meta
Normal file
11
Assets/Scripts/Games/Spaceball/Spaceball.cs.meta
Normal file
@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 09594549474ef4447a9f830333a42aa9
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
@ -2,8 +2,13 @@ using UnityEngine;
|
||||
|
||||
public class ForceScaleIdentity : MonoBehaviour
|
||||
{
|
||||
public GameObject parent;
|
||||
|
||||
void Update()
|
||||
{
|
||||
transform.localScale = new Vector3(1f / transform.parent.localScale.x, 1f / transform.parent.localScale.y);
|
||||
if (parent == null)
|
||||
transform.localScale = new Vector3(1f / transform.parent.localScale.x, 1f / transform.parent.localScale.y);
|
||||
else
|
||||
transform.localScale = new Vector3(1f / parent.transform.localScale.x, 1f / parent.transform.localScale.y);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user