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