gandalfbialy

Untitled

Jul 19th, 2025
267
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.37 KB | None | 0 0
  1. using UnityEngine;
  2. [CreateAssetMenu(fileName = "Magnet", menuName = "Powerup/Magnet")]
  3. public class Magnet : Powerup
  4. {
  5.     [SerializeField]
  6.     private PowerupStats range;
  7.     public float GetRange() { return range.GetValue(currentLevel); }
  8.     [SerializeField]
  9.     private PowerupStats speed;
  10.     public float GetSpeed() { return speed.GetValue(currentLevel); }
  11. }
Advertisement
Add Comment
Please, Sign In to add comment