Exemple #1
0
 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();
     }
 }
Exemple #2
0
 private void Move(Vector2 Diraction)
 {
     BallBody.AddForce(ForceVectorByDiraction(Diraction));
     //Functions.DrawTemporalLine(transform.position, transform.position + ForceVectorByDiraction(Diraction));
 }
Exemple #3
0
 private void Move(MovingDiractions Diraction)
 {
     BallBody.AddForce(ForceVectorByDiraction(Diraction));
 }