public void HealingDone()
 {
     isHealed      = true;
     tutorialState = Tutorial_State.OpenShop;
     healMessage4.SetActive(false);
     ShopMessage1.SetActive(true);
 }
 private void MovementTutorial()
 {
     if (isCharacterMoved)
     {
         tutorialState = Tutorial_State.Zoom;
         movementMessage.SetActive(false);
         zoomMessage.SetActive(true);
     }
 }
 public void EndCutscene()
 {
     Debug.Log(tutorialState.ToString());
     camera2.GetComponent <AudioListener>().enabled    = false;
     mainCamera.GetComponent <AudioListener>().enabled = true;
     movementMessage.SetActive(true);
     tutorialState = Tutorial_State.Movement;
     Debug.Log(tutorialState.ToString());
 }
 private void FocusTutorial()
 {
     if (isFocuspressed)
     {
         if (taskTime == 0)
         {
             taskTime = Time.time;
         }
         if (Time.time - taskTime > 1)
         {
             tutorialState = Tutorial_State.Attack;
             focusMessage.SetActive(false);
             StartAttackTutorial();
             taskTime = 0;
         }
     }
 }
 private void CamMovementTutorial()
 {
     if (isWpressed && isApressed && isSpressed && isDpressed)
     {
         if (taskTime == 0)
         {
             taskTime = Time.time;
         }
         if (Time.time - taskTime > 1)
         {
             tutorialState = Tutorial_State.Focus;
             cameraMessage.SetActive(false);
             focusMessage.SetActive(true);
             taskTime = 0;
         }
     }
 }
 private void RotationTutorial()
 {
     if (isQpressed && isEpressed)
     {
         if (taskTime == 0)
         {
             taskTime = Time.time;
         }
         if (Time.time - taskTime > 2)
         {
             tutorialState = Tutorial_State.Camera;
             rotationMessage.SetActive(false);
             cameraMessage.SetActive(true);
             taskTime = 0;
         }
     }
 }
 private void ZoomTutorial()
 {
     if (isZoomIn)
     {
         if (taskTime == 0)
         {
             taskTime = Time.time;
         }
         if (Time.time - taskTime > 2)
         {
             tutorialState = Tutorial_State.Rotation;
             zoomMessage.SetActive(false);
             rotationMessage.SetActive(true);
             taskTime = 0;
         }
     }
 }
    private void AttackTutorial()
    {
        if (enemiesDead == 2)
        {
            isAttacked = true;
        }

        if (isAttacked)
        {
            if (taskTime == 0)
            {
                taskTime = Time.time;
            }
            if (Time.time - taskTime > 1)
            {
                tutorialState = Tutorial_State.Heal;
                attackMessage.SetActive(false);
                healMessage.SetActive(true);
            }
        }
    }
 public void CloseShopDone()
 {
     tutorialState = Tutorial_State.EndTutorial;
     shopMessage2.SetActive(false);
     endMessage.SetActive(true);
 }
 public void OpenShopDone()
 {
     tutorialState = Tutorial_State.CloseShop;
     ShopMessage1.SetActive(false);
     shopMessage2.SetActive(true);
 }
示例#11
0
 public void SetState(Tutorial_State newState)
 {
     this.t_State = newState;
     //this.stateFinished[(int)newState] = false;
 }
示例#12
0
 public void SetStateFinish(Tutorial_State currentState, bool stateFinished)
 {
     this.stateFinished[(int)currentState] = stateFinished;
     ChangeState();
 }