示例#1
0
 void FixedUpdate()
 {
     if (following)
     {
         MakeAStep();
         RotateTowardsNextStep();
     }
     if (nextInLine)
     {
         nextInLine.AddStep(transform.position, false);
     }
 }
示例#2
0
    void FixedUpdate() {

        //Jumpy stuff horrible
        airTime--;
        if (airTime <=0)
        {
            onAir = false;
            bool isJumping = myMovement.IsJumping();
            if (isJumping)
            {
                Jump();
            }

        }
        
        //
        if (follower) {
            follower.AddStep(transform.position, false);//aca va IsJumping pero veremos
        }

    }