Exemple #1
0
        public override void UpdateBehaviourTree()
        {
            Vector3 playerPos = machine.Player.transform.position;

            checkIsDistance_1.UpdateLeaf(playerPos);
            checkIsThereObstacle_1.UpdateLeaf(playerPos);
            checkPathCornerCount_1.UpdateLeaf(playerPos);
            actionMove_1.UpdateLeaf(playerPos);

            actionMove_2.UpdateLeaf(playerPos);
        }
        public override void UpdateBehaviourTree()
        {
            Vector3 playerPos = machine.Player.rig.position;

            checkIsDistance1_11.UpdateLeaf(playerPos);
            checkIsDistance2_11.UpdateLeaf(playerPos);
            actionDashAttack_11.UpdateLeaf(playerPos);

            checkIsDistance_12.UpdateLeaf(playerPos);
            actionCloseAttack_12.UpdateLeaf(playerPos);


            checkIsDistance_2.UpdateLeaf(playerPos);
            actionGoToAttackPosition_2.UpdateLeaf(playerPos);

            checkIsDistance1_3.UpdateLeaf(playerPos);
            checkIsDistance2_3.UpdateLeaf(playerPos);
            actionMirrorTargetMoves_3.UpdateLeaf(machine.Player.rig, machine.Player.AxisInputs);
        }