chore: initial commit

This commit is contained in:
2026-05-08 11:04:00 +08:00
commit f55d2a57c3
6278 changed files with 866081 additions and 0 deletions

View File

@@ -0,0 +1,33 @@
#if GRAPH_DESIGNER
/// ---------------------------------------------
/// Behavior Designer
/// Copyright (c) Opsive. All Rights Reserved.
/// https://www.opsive.com
/// ---------------------------------------------
namespace Opsive.BehaviorDesigner.Runtime.Tasks.Actions.Conversions
{
using Opsive.GraphDesigner.Runtime.Variables;
using UnityEngine;
[Opsive.Shared.Utility.Description("Converts a boolean value to a string value.")]
[Shared.Utility.Category("Conversions")]
public class ConvertBoolToString : Action
{
[Tooltip("The boolean value to convert.")]
[SerializeField] protected SharedVariable<bool> m_Value;
[Tooltip("The variable that should be set to the converted string value.")]
[RequireShared] [SerializeField] protected SharedVariable<string> m_StoreResult;
/// <summary>
/// Executes the task.
/// </summary>
/// <returns>The execution status of the task.</returns>
public override TaskStatus OnUpdate()
{
m_StoreResult.Value = m_Value.Value.ToString();
return TaskStatus.Success;
}
}
}
#endif