18 lines
372 B
C#
18 lines
372 B
C#
using BehaviorDesigner.Runtime;
|
|
using BehaviorDesigner.Runtime.Tasks;
|
|
|
|
// ReSharper disable once CheckNamespace
|
|
namespace BlueWaterProject
|
|
{
|
|
public class IncreaseSharedInt : Action
|
|
{
|
|
public SharedInt targetInt;
|
|
|
|
public override TaskStatus OnUpdate()
|
|
{
|
|
targetInt.Value++;
|
|
|
|
return TaskStatus.Success;
|
|
}
|
|
}
|
|
} |