Advertisement
Guest User

Untitled

a guest
May 23rd, 2019
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.29 KB | None | 0 0
  1. //--------------------------------------------------------------
  2. // _______ _____ __ ________
  3. // | ___ \ / \ | | |___ ___|
  4. // | | \ | / ___ \ | | / /
  5. // | |___/ / / / \ \ | | / /_
  6. // | | \ \ \ \___/ / | | /_ /
  7. // | |___/ | \ / | |____ | /
  8. // |_______/ \_____/ |_______| |/
  9. //
  10. // V I S U A L S C R I P T I N G
  11. //--------------------------------------------------------------
  12. //
  13. // THIS FILE IS AUTO-GENERATED.
  14. //
  15. // ANY CHANGES WILL BE LOST NEXT TIME THIS SCRIPT IS GENERATED.
  16. //
  17. //--------------------------------------------------------------
  18. #pragma warning disable 162, 168, 219, 429
  19.  
  20. using Bolt;
  21. using Ludiq;
  22. using Ludiq.Bolt;
  23. using System;
  24. using System.Collections;
  25. using System.Collections.Generic;
  26. using System.Linq;
  27. using UnityEngine;
  28.  
  29. namespace Bolt.Generated
  30. {
  31. public class TestGraphScript : FlowGraphScript
  32. {
  33. private EventHook updateHook;
  34. private Action<EmptyEventArgs> updateHandler;
  35.  
  36. public TestGraphScript(IMachineScript machineScript) : base(machineScript) { }
  37.  
  38. public override FlowGraphData graphData
  39. {
  40. get => _graphData;
  41. set
  42. {
  43. _graphData = value;
  44. }
  45. }
  46.  
  47. public void Update()
  48. {
  49. Debug.Log("Hello World!");
  50. }
  51.  
  52. public override void StartListening()
  53. {
  54. base.StartListening();
  55. updateHook = new EventHook("Update", machineScript);
  56. updateHandler = args => Update();
  57. EventBus.Register(updateHook, updateHandler);
  58. }
  59.  
  60. public override void StopListening()
  61. {
  62. base.StopListening();
  63. EventBus.Unregister(updateHook, updateHandler);
  64. updateHandler = null;
  65. }
  66. }
  67. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement