How do I add a jump to a Meccam animation . I’ve tired two approaches so far
void JumpON(){
if(AnyJump){
if(!Jumper){
Jumper = true ;
if(!Tweenin)
{
transform.localPositionTo(JumpTime,new Vector3(transform.localPosition.x,
(transform.localPosition.y+
JumpGain),transform.localPosition.z ),true);
}
else{
// /*
HOTween.To(transform, JumpTime, new TweenParms().Prop("localPosition",
new Vector3(transform.localPosition.x,
(transform.localPosition.y+
JumpGain),transform.localPosition.z )));
//*/
}
StartCoroutine(JumpDelay());
}
}
}
Both cause weirdness to happen . I’m making a platfomer so I need to be able to add a bit to the y of the transform .