|
|
@ -4,7 +4,7 @@ using UnityEngine; |
|
|
|
namespace Game { |
|
|
|
namespace Game { |
|
|
|
public class Ball : NetworkBehaviour { |
|
|
|
public class Ball : NetworkBehaviour { |
|
|
|
|
|
|
|
|
|
|
|
private float SpeedGain { get; } = GameManager.BalanceValues.ballSpeedMultiplier; |
|
|
|
private float SpeedGain { get; set; } |
|
|
|
|
|
|
|
|
|
|
|
public Rigidbody2D Rb { get; private set; } |
|
|
|
public Rigidbody2D Rb { get; private set; } |
|
|
|
|
|
|
|
|
|
|
@ -22,6 +22,7 @@ namespace Game { |
|
|
|
private void Awake() { |
|
|
|
private void Awake() { |
|
|
|
Rb = GetComponent<Rigidbody2D>(); |
|
|
|
Rb = GetComponent<Rigidbody2D>(); |
|
|
|
Collider = GetComponent<CircleCollider2D>(); |
|
|
|
Collider = GetComponent<CircleCollider2D>(); |
|
|
|
|
|
|
|
SpeedGain = GameManager.BalanceValues.ballSpeedMultiplier; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private void OnCollisionEnter2D(Collision2D other) { |
|
|
|
private void OnCollisionEnter2D(Collision2D other) { |
|
|
|