private void Move(MovingDiractions Diraction) { if (spentEnergy < Settings.levelEnergy) { BallBody.AddForce(NormalizedForceVectorByDiraction(Diraction)); spentEnergy += NormalizedForceVectorByDiraction(Diraction).magnitude *Settings.energyMultiplyer; Logger.UpdateContent(UILogDataTypes.EnergyAmount, "Energy spent: " + spentEnergy + "/" + Settings.levelEnergy); } else { Defeat(); } }
private void Move(Vector2 Diraction) { BallBody.AddForce(ForceVectorByDiraction(Diraction)); //Functions.DrawTemporalLine(transform.position, transform.position + ForceVectorByDiraction(Diraction)); }
private void Move(MovingDiractions Diraction) { BallBody.AddForce(ForceVectorByDiraction(Diraction)); }