#if GRAPH_DESIGNER /// --------------------------------------------- /// Behavior Designer /// Copyright (c) Opsive. All Rights Reserved. /// https://www.opsive.com /// --------------------------------------------- namespace Opsive.BehaviorDesigner.Runtime.Tasks.Actions.UnityObjects { using Opsive.GraphDesigner.Runtime.Variables; using System; using UnityEngine; [Opsive.Shared.Utility.Description("This task is obsolete. Use Variables.SetGameObject instead.")] [Shared.Utility.Category("Unity")] [Obsolete("This task is obsolete. Use Variables.SetGameObject instead.")] public class SetGameObject : TargetGameObjectAction { [Tooltip("The variable that should be set.")] [RequireShared] [SerializeField] protected SharedVariable m_StoreResult; /// /// Executes the task. /// /// The execution status of the task. public override TaskStatus OnUpdate() { InitializeTarget(); m_StoreResult.Value = m_ResolvedGameObject; return TaskStatus.Success; } } } #endif