Exemple #1
0
 public void Update()
 {
     if (_msgScroll.verticalNormalizedPosition > 1f && !_isReloadingDialogueMute)
     {
         _LoadMoreDialogue();
         _isReloadingDialogueMute = true;
         CoroutineManager.DoDelayCertainSeconds(delegate { _isReloadingDialogueMute = false; }, 3f);
     }
 }
Exemple #2
0
 public DownCounter Start()
 {
     isToggled  = true;
     _coroutine = CoroutineManager.DoDelayCertainSeconds(delegate
     {
         isToggled = false;
         Services.eventManager.Fire(new DownCounterStop(this));
     }, countTime);
     Services.eventManager.Fire(new DownCounterStart(this));
     return(this);
 }
Exemple #3
0
    public void DialIn(PlotManager.PhoneCall phone)
    {
        targetPhoneCall = phone;
        _previousPage   = _ps.GetCurrentState();
        _ps.ChangeGameState("Phone_DemonCall");
        var waitTime = 15f;

        _phoneRelatedCoroutine.Add(CoroutineManager.DoDelayCertainSeconds(
                                       Hang,
                                       waitTime));
    }
Exemple #4
0
    private void ZoomOut()
    {
        if (!_isLocked && !Services.inputController.isPointerOnGameObject(gameObject))
        {
            _mp.gameObject.transform.localScale    = oriVideoScale;
            _mp.gameObject.transform.localPosition = oriVideoCenter;
            triggeredTime++;

            CoroutineManager.DoDelayCertainSeconds(delegate { _isLocked = false; }, lockedTime);
        }
    }
Exemple #5
0
    private void ZoomIn()
    {
        if (!_isLocked)
        {
            _isLocked = true;
            Vector3 magniCenter = new Vector3((knotPos.x - oriVideoCenter.x) * magniTime, (knotPos.y - oriVideoCenter.y) * magniTime, oriVideoCenter.z);
            _mp.gameObject.transform.localScale    = oriVideoScale * magniTime;
            _mp.gameObject.transform.localPosition = new Vector3(oriVideoCenter.x - magniCenter.x,
                                                                 oriVideoCenter.y - magniCenter.y, oriVideoCenter.z);

            startedCoroutine = CoroutineManager.DoDelayCertainSeconds(delegate { _isLocked = false; ZoomOut(); }, lockedTime);
        }
    }
Exemple #6
0
    private IEnumerator _TrackCoroutine()
    {
        while (Services.applicationController.isGamePaused)
        {
            yield return(new WaitForSeconds(0.1f));
        }
        switch (appearType)
        {
        case knotAppearType.natual:
            SetActive();
            break;

        case knotAppearType.basedOnTime:
            _activeRoutine.Add(
                CoroutineManager.DoDelayCertainSeconds(delegate() { SetActive(); }, knotActPosition));
            break;
        }
    }
Exemple #7
0
    public void DialOut(PlotManager.PhoneCall phone = null)
    {
        targetPhoneCall = phone;
        _previousPage   = _ps.GetCurrentState();
        _ps.ChangeGameState("Phone_OnCall");
        var waitTime = 0f;

        if (phone == null)
        {
            waitTime = 15f;
        }
        else
        {
            waitTime = Random.Range(0f, 13f);
        }
        _phoneRelatedCoroutine.Add(CoroutineManager.DoDelayCertainSeconds(
                                       PhonePutThrough,
                                       waitTime));
    }