public void ShowInstructions(ExperimentManager.BlockSettings settings) { if (settings.distance == "Close" && settings.targetMode == "Still") { distanceInstructions.SetActive(false); targetModeInstructions.SetActive(false); } else if (settings.distance == "Close" && settings.targetMode == "Move") { RelocateInstructionsPanel(spawnPointClose); distanceInstructions.SetActive(false); targetModeInstructions.SetActive(true); } else if (settings.distance == "Far" && settings.targetMode == "Still") { RelocateInstructionsPanel(spawnPointFar); distanceInstructions.SetActive(true); targetModeInstructions.SetActive(false); } else if (settings.distance == "Far" && settings.targetMode == "Move") { RelocateInstructionsPanel(spawnPointFar); distanceInstructions.SetActive(false); targetModeInstructions.SetActive(true); } }
public void ApplyBlockSettings(ExperimentManager.BlockSettings settings) { if (settings.distance == "Close" && settings.targetMode == "Still") { MovePlayer(closeDistance); gameMode = options.Still; } else if (settings.distance == "Close" && settings.targetMode == "Move") { MovePlayer(closeDistance); gameMode = options.Move; } else if (settings.distance == "Far" && settings.targetMode == "Still") { MovePlayer(FarDistance); gameMode = options.Still; } else if (settings.distance == "Far" && settings.targetMode == "Move") { MovePlayer(FarDistance); gameMode = options.Move; } }