void Update()
{
cur_check = Time.time;
if(cycle_time == 0){
}
else{
cur_check = Time.time;
//Every y seconds, set the platform to move to the set position
//Positions should swap every y seconds, in a cycle.
if(cur_check - last_check >= cycle_time){
direction_val *= -1;
platform_body.velocity = new Vector2(speed_val*direction_val, 0);
last_check = cur_check;
}
}
}