Exemple #1
0
 void Dast(bool inputDast, float horizontal)
 {
     if (inputDast && !isWall)
     {
         Vector2 direction = transform.localScale.x > 0 ? transform.right.normalized : -transform.right.normalized;
         spriteEffect.StartEffect(direction);
     }
 }