Beispiel #1
0
        protected override void Update()
        {
            SharedActionGraphState sharedActionGraphState = SceneRefs.ActionSequencer.GetSharedActionGraphState(SceneRefs.ActionSequencer.GetTrigger(Owner));

            if (sharedActionGraphState != null)
            {
                sharedActionGraphState.IntData = Value;
            }
            Completed();
        }
Beispiel #2
0
        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();
 }