using DragonLi.Behaviour; using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.AI; public class BaseAction : ActionLeaf { protected Transform controller; protected NavMeshAgent agent; protected Animator animator; protected override void OnEnter(Blackboard data) { if ((Object)(object)controller == (Object)null) { controller = (data["controller"].ObjectValue as Transform); } if ((Object)(object)agent == (Object)null) { agent = (data["agent"].ObjectValue as NavMeshAgent); } if ((Object)(object)animator == (Object)null) { animator = (data["animator"].ObjectValue as Animator); } } }