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

Commit

Permalink
Add AIAction Start/Stop Nodes.
Browse files Browse the repository at this point in the history
  • Loading branch information
marcosecchi committed Jan 23, 2020
1 parent 81b6c48 commit 661e586
Show file tree
Hide file tree
Showing 4 changed files with 64 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
using MoreMountains.TopDownEngine;
using MoreMountains.Tools;
using TheBitCave.MMToolsExtensions.AI.Graph;
using UnityEngine;

namespace TheBitCave.TopDownEngineExensions.AI.Graph
{
/// <summary>
/// A node representing a TopDown Engine <see cref="MoreMountains.TopDownEngine.AIActionCrouchStart"/> action.
/// </summary>
[CreateNodeMenu("AI/Action/Crouch Start")]
public class AIActionCrouchStartNode : AIActionNode
{
public override AIAction AddActionComponent(GameObject go)
{
var action = go.AddComponent<AIActionCrouchStart>();
action.Label = label;
return action;
}
}
}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
using MoreMountains.TopDownEngine;
using MoreMountains.Tools;
using TheBitCave.MMToolsExtensions.AI.Graph;
using UnityEngine;

namespace TheBitCave.TopDownEngineExensions.AI.Graph
{
/// <summary>
/// A node representing a TopDown Engine <see cref="MoreMountains.TopDownEngine.AIActionCrouchStop"/> action.
/// </summary>
[CreateNodeMenu("AI/Action/Crouch Stop")]
public class AIActionCrouchStopNode : AIActionNode
{
public override AIAction AddActionComponent(GameObject go)
{
var action = go.AddComponent<AIActionCrouchStop>();
action.Label = label;
return action;
}
}
}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 661e586

Please sign in to comment.