using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Rotat : MonoBehaviour
{
public SpriteRenderer Hero;
public SpriteRenderer Sh;
public bool Blocking = false;
private void Update()
{
if (Blocking == false)
{
if (Hero.flipX == true)
{
Sh.flipX = true;
transform.position += new Vector3(3, 0);
}
if (Hero.flipX == false)
{
Sh.flipX = false;
}
Blocking = true;
}
}
}