public static LTSeq sequence(ref TweenID tweenID) { tweenID.Cancel(); var seq = LeanTween.sequence(); tweenID = seq.id; return(seq); }
public void TakeDamage(float damage, float scaling) { greenHealth -= (damage * ScalingMod()); UpdateGreenHealthMeter(); if (redHealthTween.isTweening) { redHealthTween.Cancel(); } Debug.Log("HIT " + damage * ScalingMod()); comboHitsTaken++; UpdateComboCounter(); scalingTicks += scaling; }