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(); }
float GetHiddenPlatformFinalPosition() { return(FloatRounder.RoundToCent(hiddenPlatform.GetComponent <Platform>().PositionX)); }
float GetCharacterPosition() { return(FloatRounder.RoundToCent(character.GetComponent <Character>().Position)); }