Exemple #1
0
 void Awake()
 {
     instance = this;
     PhotonNetwork.OnEventCall += this.OnEvent;
 }
Exemple #2
0
 void OnDestroy()
 {
     instance = null;
     PhotonNetwork.OnEventCall -= this.OnEvent;
 }