Repository URL to install this package:
Version:
1.3.1 ▾
|
using System;
using Fluctio.FluctioSim.Core.Components.MachineLearning.Agents;
using UnityEngine;
namespace Fluctio.FluctioSim.Core.Components.MachineLearning.Triggers
{
public abstract class AgentTrigger : Trigger
{
[NonSerialized] protected Agent Agent;
protected virtual void Awake()
{
Agent = GetComponentInParent<Agent>();
if (Agent == null)
{
Debug.LogWarning("This component should be inside GameObject with Agent component");
}
}
}
}