Spaceball's camera messed with other games

This commit is contained in:
Braedon
2022-02-04 13:15:28 -05:00
parent 9722ce7122
commit b55a6dcabc
4 changed files with 482 additions and 1 deletions

View File

@ -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);

View File

@ -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);
}
}
}

View File

@ -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),
}),