// Use this for initialization void Start() { PhotonNetwork.ConnectUsingSettings(VERSION); scenePhotonView = this.GetComponent<PhotonView>(); if(player1 != null) { stats1 = player1.GetComponent<NinjaControllerScript> (); } if (player2 != null) { stats2 = player2.GetComponent<NinjaControllerScript> (); } backgroundInverter = background.GetComponent < BackgroundInverter> (); }
// Use this for initialization void Start() { if(player1 != null) { stats1 = player1.GetComponent<NinjaControllerScript> (); } stats2 = player2.GetComponent<NinjaControllerScript> (); backgroundInverter = background.GetComponent < BackgroundInverter> (); }