protected override void Update() { SharedActionGraphState sharedActionGraphState = SceneRefs.ActionSequencer.GetSharedActionGraphState(SceneRefs.ActionSequencer.GetTrigger(Owner)); if (sharedActionGraphState != null) { sharedActionGraphState.IntData = Value; } Completed(); }
protected override void Update() { SharedActionGraphState sharedActionGraphState = SceneRefs.ActionSequencer.GetSharedActionGraphState(SceneRefs.ActionSequencer.GetTrigger(Owner)); if (sharedActionGraphState != null && Value == sharedActionGraphState.IntData) { Completed(); } else { Completed(null, conditionBranchValue: false); } }
protected override void OnEnable() { sharedData = SceneRefs.ActionSequencer.GetSharedActionGraphState(SceneRefs.ActionSequencer.GetTrigger(Owner)); base.OnEnable(); }