AxUnityWebPlayerEventMulticaster.cs 969 B

123456789101112131415161718192021222324252627282930
  1. namespace AxUnityWebPlayerAXLib
  2. {
  3. using System;
  4. using System.Runtime.InteropServices;
  5. using UnityWebPlayerAXLib;
  6. [ClassInterface(ClassInterfaceType.None)]
  7. public class AxUnityWebPlayerEventMulticaster : _DUnityWebPlayerAXEvents
  8. {
  9. private AxUnityWebPlayer parent;
  10. public AxUnityWebPlayerEventMulticaster(AxUnityWebPlayer parent)
  11. {
  12. this.parent = parent;
  13. }
  14. public virtual void OnExternalCall(string value)
  15. {
  16. _DUnityWebPlayerAXEvents_OnExternalCallEvent e = new _DUnityWebPlayerAXEvents_OnExternalCallEvent(value);
  17. this.parent.RaiseOnOnExternalCall(this.parent, e);
  18. }
  19. public virtual void ReadyStateChange(int readyState)
  20. {
  21. _DUnityWebPlayerAXEvents_ReadyStateChangeEvent e = new _DUnityWebPlayerAXEvents_ReadyStateChangeEvent(readyState);
  22. this.parent.RaiseOnReadyStateChange(this.parent, e);
  23. }
  24. }
  25. }