WallScript.cs 262 B

12345678
  1. using UnityEngine;
  2. [RequireComponent(typeof(Collider2D))]
  3. public class WallScript : MonoBehaviour
  4. {
  5. // Walls don't need special logic - physics handles bounciness=1 naturally.
  6. // This script just ensures the wall is recognized as a collidable object.
  7. }