// Use this for initialization void Start() { p1 = FindObjectOfType <PlayerController>(); p2 = FindObjectOfType <Player2Controller>(); p1Score = GetComponent <Text>(); p2Score = GetComponent <Text>(); p1s = 0; p2s = 0; p1Score.text = "Player 1: " + p1s; p2Score.text = "Player 2: " + p2s; }
// Use this for initialization void Start() { player = FindObjectOfType <PlayerController>(); player2 = FindObjectOfType <Player2Controller>(); }