标签: c# unity3d
我想知道什么是翻转2D游戏对象的好方法,它会在满足条件时翻转它的动画。
答案 0 :(得分:0)
试试这个:
// switch the x axis by multiplying by -1 transform.localScale = new Vector3( transform.localScale.x * -1, transform.localScale.y, transform.localScale.z);