Beispiel #1
0
 protected override void Update()
 {
     base.Update();
     delayClean_.Update();
     if (currentTrophy_ && IsGrabbed())
     {
         if (delayClean_.IsFinished())
         {
             if (!requiresUseToClean)
             {
                 delayClean_.StartTimer();
                 currentTrophy_.CleanTrophy(cleaningType, cleaningRate * Time.deltaTime);
                 PlayToolSfx();
             }
             else if (IsUsing())
             {
                 delayClean_.StartTimer();
                 currentTrophy_.CleanTrophy(cleaningType, cleaningRate * Time.deltaTime);
             }
         }
     }
 }