コード例 #1
0
 public void GoToClickState()
 {
     if (!isClicked)
     {
         isClicked    = true;
         currentState = clickedState;
     }
 }
コード例 #2
0
ファイル: UIOptions.cs プロジェクト: Elejdor/Mystify
 public void DialogLayout(TextStates textState)
 {
     StartCoroutine(fadeIn(3f, 0.8f));
     Time.timeScale = 0f;
     StartCoroutine(MonologueStart(textState));
     if (monologeEnd)
     {
         Time.timeScale = 1f;
         StartCoroutine(fadeOut(3f));
     }
 }
コード例 #3
0
ファイル: UIOptions.cs プロジェクト: Elejdor/Mystify
    public IEnumerator MonologueStart(TextStates textStates, float lenght = 5f)
    {
        textManager.currentState = textStates;

        while (lenght >= 0)
        {
            yield return(null);

            lenght -= Time.deltaTime;
        }
        monologeEnd = true;
        textManager.currentState = TextStates.NoText;
    }
コード例 #4
0
 public void GoToAfterClickState()
 {
     CallTransition();
     currentState = afterClickState;
     if (disableOnClick)
     {
         this.gameObject.SetActive(false);
     }
     else
     {
         isClicked = false;
     }
     CheckNextState();
 }
コード例 #5
0
 public void LevelContorl(string enemytag)
 {
     if (targetsHit >= numberOfTargets && enemytag == "Enemy")
     {
         GameManager.Instance.level1Finished = true;
         textState = TextStates.level1Finished;
         LoadText();
     }
     else if (targetsHit >= numberOfTargets && enemytag == "EnemyMovable")
     {
         GameManager.Instance.level2Finished = true;
         textState = TextStates.level2Finished;
         LoadText();
     }
 }
コード例 #6
0
ファイル: TextManager.cs プロジェクト: Elejdor/Mystify
 // Use this for initialization
 void Start()
 {
     text.text    = "";
     currentState = TextStates.NoText;
 }
コード例 #7
0
 public void ResetText()
 {
     this.gameObject.SetActive(true);
     isClicked    = false;
     currentState = initialState;
 }
コード例 #8
0
 private void Awake()
 {
     currentState = TextStates.nothing;
 }