void ShootPlayer(bool _mouseLeftInput) { if (playerStats == null) { return; } if (_mouseLeftInput) { if (playerStats.IsMaxPower()) { _currentBall.Launch(); _currentBall = null; playerStats.Power = 0; CreateBall(); } } }
public void CreateBall() { _currentBall = Instantiate(ball, PosSpawn); _currentBall.Init(this); }