Ejemplo n.º 1
0
    public void OnState()
    {
        drillSpinning = true;

        bitModel.transform.Rotate(0, 0, turnRate);
        myAir.Consume(onAirConsumptionRate);
        partCounter++;


        if (partCounter >= counterUpperLimit)
        {
            partCounter = 0;
            airBubbles.Emit(onBubbleRate);
            if (drilling)
            {
                volumeApplied = volumeOperating;
                dustParticles.Emit(dustPartRate);
            }
            else
            {
                volumeApplied = 0;
            }
        }
    }
 void Update()
 {
     myAir.Consume(breathingAirRate * Time.deltaTime);
     WalkingMomentum();
 }