コード例 #1
0
    public void Update()
    {
        if (!body.Grounded)
        {
            if (airTime > 0)
            {
                airTime -= Time.deltaTime;

                if (!shakeEffect.IsShaking && airTime <= instableTime)
                {
                    shakeEffect.Shake(shakeStrenght, instableTime, false);
                }
            }
            else
            {
                if (shakeEffect.IsShaking)
                {
                    shakeEffect.Stop();
                }
                body.GravityMultiplier = gravityMultiplier;
            }
        }
    }
コード例 #2
0
 public override void StopDrilling(DrillBit db)
 {
     base.StopDrilling(db);
     ShakeFX.Stop();
 }