Example #1
0
 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;
 }
Example #2
0
 void SetDimencions()
 {
     width     = FloatRounder.Round(GetWidth());
     PositionX = FloatRounder.Round(GetPositionX());
 }