using System.Collections; using System.Collections.Generic; using UnityEngine; Dont forget to Dellet #yourScriptName and write your Script Name... public class #YourScriptName: MonoBehaviour { Dont forget to Dellet #yourMotionScriptName and write your Script Name... public #yourMotionScriptName InsertyourMotionScript; public float Scale_X; public float Scale_y; // Start is called before the first frame update void Start() { } // Update is called once per frame void Update() { if(InsertyourMotionScript.Right){ transform.localScale = new Vector2(Scale_X,Scale_y); } if(!InsertyourMotionScript.Right){ transform.localScale = new Vector2(-Scale_X,Scale_y); } } }