Пример #1
0
 public void Move()
 {
     IsReady = false;
     if ((TravaledDistance > Distances.CharacterRunOnStickDistance && Distances.CharacterRunOnStickDistance < Distances.Space + 0.3f))
     {
         SetFalling();
     }
     else if (FloatRounder.RoundToCent(TravaledDistance) < FloatRounder.RoundToCent(Distances.CharacterRunDistance))
     {
     }
     else if (FloatRounder.RoundToCent(Distances.StickLength) < FloatRounder.RoundToCent(Distances.CharacterRunDistance))
     {
         SetReady();
         scoreSetter.GetComponent <ScoreSetter>().RiseScore();
     }
     else if (TravaledDistance > Distances.CharacterRunOnStickDistance)
     {
         SetFalling();
     }
     Step();
 }
Пример #2
0
 float GetHiddenPlatformFinalPosition()
 {
     return(FloatRounder.RoundToCent(hiddenPlatform.GetComponent <Platform>().PositionX));
 }
Пример #3
0
 float GetCharacterPosition()
 {
     return(FloatRounder.RoundToCent(character.GetComponent <Character>().Position));
 }