protected override void FixedTick( ) { //keep moving Parent.tf.position = horiLoopMove.GetNextPos(Parent.tf.position); GetTouch( ); }
override public void OnStateUpdate(Animator animator, AnimatorStateInfo stateInfo, int layerIndex) { CheckTouch( ); Parent.tf.position = horiMove.GetNextPos(Parent.tf.position); Parent.UpdateRenderDirectionWithFlip(horiMove.IsFacingRight, true); }