Pad.cs 253 B

1234567891011121314
  1. using UnityEngine;
  2. using Game;
  3. [RequireComponent(typeof(Collider2D))]
  4. public class Pad : MonoBehaviour
  5. {
  6. [SerializeField] private PadType _type;
  7. public PadType Type => _type;
  8. public void Deactivate() => GetComponent<Collider2D>();
  9. }