public void SetDistances(GameObject leftPlatform) { Distances.Space = -FloatRounder.Round(GetSpace(leftPlatform)); Distances.CharacterRunDistance = Distances.Space + width; Distances.CharacterRunOnStickDistance = RIGHT_MARGIN; Distances.RightPlatformWidth = width; Distances.LeftPlatformWidth = leftPlatform.transform.localScale.x; }
void SetDimencions() { width = FloatRounder.Round(GetWidth()); PositionX = FloatRounder.Round(GetPositionX()); }