Exemplo n.º 1
0
    public static LTSeq sequence(ref TweenID tweenID)
    {
        tweenID.Cancel();
        var seq = LeanTween.sequence();

        tweenID = seq.id;
        return(seq);
    }
Exemplo n.º 2
0
 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;
 }