You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
732 B
28 lines
732 B
using TNode.TNodeCore.Runtime.Models;
|
|
using TNodeCore.Runtime.Attributes;
|
|
using TNodeCore.Runtime.Attributes.Ports;
|
|
using TNodeCore.Runtime.Models;
|
|
|
|
namespace Samples.Nodes{
|
|
[GraphUsage(typeof(HelloGraph),"Math")]
|
|
public class CheckSizeNode:ConditionalNode{
|
|
[Input]
|
|
public float A{ get; set; }
|
|
|
|
[Output]
|
|
public TransitionCondition Bigger(){
|
|
return new TransitionCondition(){
|
|
Condition = A>0,
|
|
Priority = 0
|
|
};
|
|
}
|
|
[Output]
|
|
public TransitionCondition SmallerOrEqual(){
|
|
return new TransitionCondition(){
|
|
Condition = A<=0,
|
|
Priority = 0
|
|
};
|
|
}
|
|
|
|
}
|
|
} |