Wszystkie funkcjonalnosci git, potrzeba poprawy UI
This commit is contained in:
24
Assets/Scripts/InstructionScripts/InstructionController.cs
Normal file
24
Assets/Scripts/InstructionScripts/InstructionController.cs
Normal file
@@ -0,0 +1,24 @@
|
||||
using UnityEngine;
|
||||
using UnityEngine.SceneManagement;
|
||||
|
||||
public class InstructionController : MonoBehaviour
|
||||
{
|
||||
[Header("Scene Settings")]
|
||||
public string nextSceneName = "NeutralScene";
|
||||
|
||||
public void StartNeutralPhase()
|
||||
{
|
||||
Debug.Log("[InstructionController] Button clicked. Starting Neutral phase.");
|
||||
|
||||
if (ExperimentManager.Instance != null)
|
||||
{
|
||||
ExperimentManager.Instance.SetPhase("Neutral");
|
||||
}
|
||||
else
|
||||
{
|
||||
Debug.LogWarning("[InstructionController] ExperimentManager not found! Start from InitialScene.");
|
||||
}
|
||||
|
||||
SceneManager.LoadScene(nextSceneName);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user