这是 playbook 中最重要的部分:
void Update()
{
transform.Translate(Vector2.right * speed * Time.deltaTime);
}
这是为了让我的游戏对象朝正确的方向移动,但如果我旋转游戏对象180*,右边变成左边,我怎么才能让右边保持右边.
I Created an empty gameobject called "Obstacle" object where I store 2 of those objects called "hand"
So I have 2child objects called hand in the parent Obstacle, I want right to be right for all of them no matter if they are rotated or anything.
我也想动画他们,我做了一个测试和动画的对象不会移动他们了.
它会初始化对象,但它不会移动.