public object ViewID
{
get
{
return (!Bs._Loader.unity) ? this.photonView.viewID : this.networkView.viewID;
}
}
Assets/Scripts/Bs.cs(623,58): error CS0173: Type of conditional expression cannot be determined because there is no implicit conversion between PhotonViewID' and UnityEngine.NetworkViewID’
When using inline statements like this, both types being returned have to be the same. I know, it sucks… The one thing JavaScript has going for itself haha.
So your option is either to dig into your network view object and get the int value, if it has that as a property. Or wrap both returns as an object, which Im pretty sure will work.
public object ViewID => (Bs._Loader.unity) ? (object)this.networkView.viewID : (object)this.photonView.viewID;