PhotonView.Awake C# (CSharp) Method

Awake() protected method

Called by Unity on start of the application and does a setup the PhotonView.
protected Awake ( ) : void
return void
    protected internal void Awake()
    {
        if (this.viewID != 0)
        {
            // registration might be too late when some script (on this GO) searches this view BUT GetPhotonView() can search ALL in that case
            PhotonNetwork.networkingPeer.RegisterPhotonView(this);
            this.instantiationDataField = PhotonNetwork.networkingPeer.FetchInstantiationData(this.instantiationId);
        }

        this.didAwake = true;
    }