public void StartRun() { state = 1; ringManager.StartRun(); //start tracking run if (recordGhost != null) { recordGhost.Begin(); } //spawn ghost - TODO //some temporary testing Score s = scoreManager.GetScore(false, 0); if (s != null && ghostPrefab1 != null) { GameObject g = Instantiate(ghostPrefab1); g.GetComponent <Ghost>().record = s.ghostRecord; } }
public void StartRun() { state = 1; ringManager1.StartRun(); ringManager2.StartRun(); //enable player controls - TODO /* * player1.GetComponent<InputControl>().EnableInput(); * player1.GetComponent<InputControl>().EnableInput(); */ //start tracking run Debug.Log("GO!"); if (recordGhost1 != null) { recordGhost1.Begin(); } if (recordGhost2 != null) { recordGhost2.Begin(); } }