Пример #1
0
 public void DoneMove(bool isCrafter)
 {
     if (tutorialDialog.progress != 0)
     {
         return;
     }
     if (isCrafter && craftMoveSec > -10.0f)
     {
         craftMoveSec += Time.deltaTime;
     }
     if (!isCrafter && attackMoveSec > -10.0f)
     {
         attackMoveSec += Time.deltaTime;
     }
     if (attackMoveSec > 1.5f)
     {
         tutorialDialog.AttackCompleteRequest();
         attackMoveSec = -20.0f;
     }
     if (craftMoveSec > 1.5f)
     {
         tutorialDialog.CraftCompleteRequest();
         craftMoveSec = -20.0f;
     }
 }