protected override void Start()
{
base.Start();
fR = GetComponent<Rigidbody2D>();
//cl = GetComponent<CircleCollider2D>();
l = left.position.x;
r = right.position.x;
transform.DetachChildren();
Destroy(left.gameObject);
Destroy(right.gameObject);
}
Has Exit Time:当前状态是否播放完再进入下一状态
Setting
Exit Time 1,(0~1+)当前状态播放一遍在进入下一状态
Transition Duratio 0,(0~1+)动作融合,2D不需要融合
Transition Offset 0,(0~1+)下一状态是否需要偏移
断离销毁子类,状态机-动作融合
2020-05-19