Advertisement
Guest User

Untitled

a guest
Sep 25th, 2017
35
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.58 KB | None | 0 0
  1.         public void UsedOnlyForAOTCodeGeneration()
  2.         {
  3.             // IL2CPP needs only this line.
  4.             Send(new MessageData<EmptyParameters>(), MessageSendOptions.DefaultReliable());
  5.  
  6.             // Mono also needs this line.
  7.             new PhotonPeer().Send(new MessageData<EmptyParameters>(), MessageSendOptions.DefaultReliable());
  8.  
  9.             // Include an exception so we can be sure to know if this method is ever called.
  10.             throw new InvalidOperationException("This method is used for AOT code generation only. Do not call it at runtime.");
  11.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement