Exemplo n.º 1
0
 // Update is called once per frame
 private void Update()
 {
     if (this.photonView.ownerId != assignedColorForUserId)
     {
         m_Renderer.material         = PlayerVariables.GetMaterial(m_Renderer.material, this.photonView.ownerId);
         this.assignedColorForUserId = this.photonView.ownerId;
         //Debug.Log("Switched Material to: " + this.assignedColorForUserId + " " + this.renderer.material.GetInstanceID());
     }
 }