Пример #1
0
 // Update is called once per frame
 void Update()
 {
     if (Input.GetKeyDown(KeyCode.Mouse0) && !isAttacking)
     {
         Attack();
     }
     if (isAttacking && plataformerMotor.IsOnGround())
     {
         plataformerMotor.velocity = new Vector2(0, plataformerMotor.velocity.y);
     }
 }
Пример #2
0
 public bool ShouldSaveTransform()
 {
     return(_motor.IsOnGround());
 }