Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class BlockBase : MonoBehaviour
- {
- public int health = default;
- public int damage = default;
- public int points = default;
- public float bouncySpeed = default;
- public virtual void Start()
- {}
- public virtual void TakeDamage(int x)
- {}
- public virtual void Die()
- {}
- public virtual void OnCollisionEnter(Collision other)
- {
- //use this to perform checks when the ball hits
- }
- public virtual void Bounce(Rigidbody body, ContactPoint point)
- {
- //Bounce here
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement