This commit is contained in:
2026-05-31 20:55:36 +02:00
parent 4655e57aaf
commit c78bdc2b2a
42 changed files with 135 additions and 7399 deletions

View File

@@ -2,10 +2,8 @@ using System;
using UnityEngine;
using UnityEngine.SceneManagement;
using TMPro;
<<<<<<< HEAD
using GeoSus.Client;
=======
>>>>>>> origin/main
public class FlappyBirdAllInOne : MonoBehaviour, ITask
{
@@ -39,17 +37,6 @@ public class FlappyBirdAllInOne : MonoBehaviour, ITask
public string TaskID { get; set; }
public TaskType TaskType { get; set; }
public string TaskName { get; set; }
<<<<<<< HEAD
public Position TaskLocation { get; set; }
public bool IsCompleted { get; private set; }
void Start()
{
Time.timeScale = 1f;
score = 0;
UpdateScore();
=======
public (double, double) TaskLocation { get; set; }
public bool IsCompleted { get; private set; }
@@ -60,17 +47,11 @@ public class FlappyBirdAllInOne : MonoBehaviour, ITask
_isPaused = false;
score = 0;
if (scoreText != null) UpdateScore();
>>>>>>> origin/main
}
void Update()
{
<<<<<<< HEAD
if (isDead) return;
=======
if (isDead || _isPaused) return;
>>>>>>> origin/main
HandleInput();
HandleSpawning();
}
@@ -120,13 +101,11 @@ public class FlappyBirdAllInOne : MonoBehaviour, ITask
{
score++;
UpdateScore();
<<<<<<< HEAD
=======
if (score >= 10)
{
Complete();
}
>>>>>>> origin/main
}
void UpdateScore()
@@ -138,26 +117,20 @@ public class FlappyBirdAllInOne : MonoBehaviour, ITask
public void GameOver()
{
isDead = true;
<<<<<<< HEAD
gameOverPanel.SetActive(true);
Time.timeScale = 0f;
=======
_isPaused = true;
if (gameOverPanel != null) gameOverPanel.SetActive(true);
// NOTE: do NOT set Time.timeScale — GPS and network must keep running
>>>>>>> origin/main
}
public void Restart()
{
<<<<<<< HEAD
Time.timeScale = 1f;
SceneManager.LoadScene(SceneManager.GetActiveScene().name);
=======
// TaskManager will unload and reload via additive loading
// Calling ExitTask lets TaskManager handle scene lifecycle
ExitTask(_onExit);
>>>>>>> origin/main
}