Skip to content
This repository was archived by the owner on Apr 3, 2022. It is now read-only.

Commit 51715ea

Browse files
committed
Add AIDecisionReloadNeeded node.
1 parent 6426ee2 commit 51715ea

File tree

2 files changed

+32
-0
lines changed

2 files changed

+32
-0
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
using UnityEngine;
2+
using MoreMountains.TopDownEngine;
3+
using MoreMountains.Tools;
4+
using TheBitCave.MMToolsExtensions.AI.Graph;
5+
6+
namespace TheBitCave.TopDownEngineExensions.AI.Graph
7+
{
8+
/// <summary>
9+
/// A node representing a TopDown Engine <see cref="MoreMountains.TopDownEngine.AIDecisionReloadNeeded"/> decision.
10+
/// </summary>
11+
[CreateNodeMenu("AI/Decision/Reload Needed")]
12+
public class AIDecisionReloadNeededNode : AIDecisionNode
13+
{
14+
public override AIDecision AddDecisionComponent(GameObject go)
15+
{
16+
var decision = go.AddComponent<AIDecisionReloadNeeded>();
17+
decision.Label = label;
18+
return decision;
19+
}
20+
}
21+
}

Common/Scripts/AI/Graph/Decisions/AIDecisionReloadNeededNode.cs.meta

Lines changed: 11 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)