mirror of
https://github.com/RHeavenStudio/HeavenStudio.git
synced 2025-06-12 07:57:38 +02:00
Spaceball's camera messed with other games
This commit is contained in:
@ -293,6 +293,7 @@ namespace RhythmHeavenMania
|
||||
this.GetComponent<SpriteRenderer>().enabled = true;
|
||||
|
||||
SetGame(game);
|
||||
GameCamera.transform.localPosition = new Vector3(GameCamera.transform.localPosition.x, GameCamera.transform.localPosition.y, -10);
|
||||
|
||||
yield return new WaitForSeconds(0.1f);
|
||||
|
||||
|
@ -8,6 +8,9 @@ namespace RhythmHeavenMania.Games.RhythmRally
|
||||
{
|
||||
public Transform cameraPos;
|
||||
|
||||
public GameObject ball;
|
||||
public NaughtyBezierCurves.BezierCurve3D curve3D;
|
||||
|
||||
// Start is called before the first frame update
|
||||
void Start()
|
||||
{
|
||||
@ -20,6 +23,8 @@ namespace RhythmHeavenMania.Games.RhythmRally
|
||||
// Update is called once per frame
|
||||
void Update()
|
||||
{
|
||||
ball.transform.position = curve3D.GetPoint(Mathf.Clamp(Conductor.instance.GetPositionFromBeat(0, 2f), 0, 1));
|
||||
ball.transform.GetChild(0).transform.position = new Vector3(ball.transform.position.x, -0.399f, ball.transform.position.z);
|
||||
}
|
||||
}
|
||||
}
|
@ -77,7 +77,7 @@ namespace RhythmHeavenMania
|
||||
{
|
||||
new Minigame("gameManager", "Game Manager", "", false, true, new List<GameAction>()
|
||||
{
|
||||
new GameAction("switchGame", delegate { GameManager.instance.SwitchGame(eventCaller.currentSwitchGame); }),
|
||||
new GameAction("switchGame", delegate { GameManager.instance.SwitchGame(eventCaller.currentSwitchGame); }, 0.5f),
|
||||
new GameAction("end", delegate { Debug.Log("end"); }),
|
||||
new GameAction("skill star", delegate { }, 1f, true),
|
||||
}),
|
||||
|
Reference in New Issue
Block a user