Exemple #1
0
        protected override BehaviourTreeStatus internalUpdate(GameTime gameTime)
        {
            BlinkSkill blinkSkill = AIUtils.GetBlinkSkill(subject);

            if (blinkSkill == null || blinkSkill.IsReady() == false)
            {
                return(BehaviourTreeStatus.Failure);
            }

            blinkSkill.Use(target.ToVector());

            return(BehaviourTreeStatus.Success);
        }