public override ActionResult Execute(RAIN.Core.AI ai) { ActionResult result = ActionResult.FAILURE; GameObject target = Target.Evaluate <GameObject>(ai.DeltaTime, ai.WorkingMemory); if (IsTargetInSights(ai, target) && m_TurretController.CanFire()) { m_TurretController.FireProjectile(target.transform.position); result = ActionResult.SUCCESS; } return(result); }