Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //--------------------------------------------------------------
- // _______ _____ __ ________
- // | ___ \ / \ | | |___ ___|
- // | | \ | / ___ \ | | / /
- // | |___/ / / / \ \ | | / /_
- // | | \ \ \ \___/ / | | /_ /
- // | |___/ | \ / | |____ | /
- // |_______/ \_____/ |_______| |/
- //
- // V I S U A L S C R I P T I N G
- //--------------------------------------------------------------
- //
- // THIS FILE IS AUTO-GENERATED.
- //
- // ANY CHANGES WILL BE LOST NEXT TIME THIS SCRIPT IS GENERATED.
- //
- //--------------------------------------------------------------
- #pragma warning disable 162, 168, 219, 429
- using Bolt;
- using Ludiq;
- using Ludiq.Bolt;
- using System;
- using System.Collections;
- using System.Collections.Generic;
- using System.Linq;
- using UnityEngine;
- namespace Bolt.Generated
- {
- public class NewFlowMacroGraphScript : FlowGraphScript
- {
- private EventHook startHook;
- private Action<EmptyEventArgs> startHandler;
- private EventHook updateHook;
- private Action<EmptyEventArgs> updateHandler;
- public NewFlowMacroGraphScript(IMachineScript machineScript) : base(machineScript) { }
- public override FlowGraphData graphData
- {
- get => _graphData;
- set
- {
- _graphData = value;
- }
- }
- public void Start() { }
- public void Update() { }
- public override void StartListening()
- {
- base.StartListening();
- startHook = new EventHook("Start", machineScript);
- startHandler = args => Start();
- EventBus.Register(startHook, startHandler);
- updateHook = new EventHook("Update", machineScript);
- updateHandler = args => Update();
- EventBus.Register(updateHook, updateHandler);
- }
- public override void StopListening()
- {
- base.StopListening();
- EventBus.Unregister(startHook, startHandler);
- startHandler = null;
- EventBus.Unregister(updateHook, updateHandler);
- updateHandler = null;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement