Пример #1
0
 void Propel(Vector3 direction, Transform wall)
 {
     if (forbiddenWall == null || wall != forbiddenWall)
     {
         fpc.grounded = true;
         force        = direction * forceMult;
         fpc.rb.AddForceAtPosition(force, transform.position, ForceMode.Impulse);
         fpc.ResetBoosts();
         forbiddenWall = wall;
     }
 }