Zabiju je
This commit is contained in:
@@ -250,7 +250,13 @@ public class CableMiniGame : MonoBehaviour, ITask
|
||||
|
||||
IEnumerator BlinkAndExit(Cable cable)
|
||||
{
|
||||
if (cable.lineImage == null) CreateLineUI(cable);
|
||||
if (cable.lineObject == null) CreateLineUI(cable);
|
||||
if (cable.lineImage == null)
|
||||
{
|
||||
Debug.LogWarning("[BlinkAndExit] No lineImage, skipping blink.");
|
||||
ExitTask(_onExit);
|
||||
yield break;
|
||||
}
|
||||
|
||||
Debug.Log("[BlinkAndExit] Wrong attempt, blinking...");
|
||||
Color original = cable.lineImage.color;
|
||||
@@ -262,8 +268,7 @@ public class CableMiniGame : MonoBehaviour, ITask
|
||||
Debug.Log("[BlinkAndExit] Restored original color, exiting task.");
|
||||
|
||||
ExitTask(_onExit);
|
||||
if (!string.IsNullOrEmpty(previousSceneName))
|
||||
SceneManager.LoadScene(previousSceneName);
|
||||
// NOTE: no SceneManager.LoadScene here — TaskManager handles unloading
|
||||
}
|
||||
|
||||
void PrintAllCableStates(string context)
|
||||
|
||||
Reference in New Issue
Block a user