22 lines
607 B
C#
22 lines
607 B
C#
using Opsive.BehaviorDesigner.Runtime;
|
|
using Opsive.BehaviorDesigner.Runtime.Tasks.Actions;
|
|
using Opsive.GraphDesigner.Runtime.Variables;
|
|
using Opsive.Shared.Utility;
|
|
using UnityEngine;
|
|
|
|
namespace Cielonos.MainGame.Characters.AI
|
|
{
|
|
[Category("Cielonos")]
|
|
public abstract class AutomataActionBase : Action
|
|
{
|
|
[Header("Main Settings")]
|
|
protected Automata self;
|
|
protected BehaviorTree behaviorTree;
|
|
|
|
public override void OnAwake()
|
|
{
|
|
self = gameObject.GetComponent<Automata>();
|
|
behaviorTree = self.behaviorTree;
|
|
}
|
|
}
|
|
} |