Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void UsedOnlyForAOTCodeGeneration()
- {
- // IL2CPP needs only this line.
- Send(new MessageData<EmptyParameters>(), MessageSendOptions.DefaultReliable());
- // Mono also needs this line.
- new PhotonPeer().Send(new MessageData<EmptyParameters>(), MessageSendOptions.DefaultReliable());
- // Include an exception so we can be sure to know if this method is ever called.
- throw new InvalidOperationException("This method is used for AOT code generation only. Do not call it at runtime.");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement