// Start is called before the first frame update void Start() { m_bsd = GameObject.Find("BetweenSceneData").GetComponent <BetweenSceneData>(); m_text = GetComponent <TextMeshProUGUI>(); if (m_bsd) { m_text.text = ("Thank you for playing.\nYour session ID is:\n" + m_bsd.m_sessionID + "\n and has been saved to:\n" + Application.streamingAssetsPath + "\n under the file name:\n" + m_bsd.m_fileName + ".csv\nPlease note down the sessionID and send me the file"); } }
void Start() { //added gameobjects m_dr = GameObject.Find("DataRecorder").GetComponent <DataRecorder>(); m_bsd = GameObject.Find("BetweenSceneData").GetComponent <BetweenSceneData>(); m_Player = FindObjectOfType <PlayerCharacterController>(); DebugUtility.HandleErrorIfNullFindObject <PlayerCharacterController, GameFlowManager>(m_Player, this); m_ObjectiveManager = FindObjectOfType <ObjectiveManager>(); DebugUtility.HandleErrorIfNullFindObject <ObjectiveManager, GameFlowManager>(m_ObjectiveManager, this); AudioUtility.SetMasterVolume(1); }