1.动画录制
2
private void OnCollisionEnter2D(Collision2D other) {
if(other.gameObject.tag=="MovePlatform"){
transform.parent=other.transform;
}
}
private void OnCollisionExit2D(Collision2D other) {
if(other.gameObject.tag=="MovePlatform"){
transform.parent=null;
}
}
3.选中起始点右键改变线性。