Esempio n. 1
0
 private void Start()
 {
     baseRotation          = gameObject.transform.rotation;
     basePosition          = gameObject.transform.position;
     lastMovementTimestamp = -timeOut;
     screenFaderController.StartFadingToClear();
 }
Esempio n. 2
0
    IEnumerator ScrollDown()
    {
        while (scrollRect.verticalNormalizedPosition > 0)
        {
            scrollRect.verticalNormalizedPosition -= scrollRate;
            yield return(null);
        }

        if (GameManager.Instance.gameStateMachine.currentState == StateType.Intro)
        {
            while (canvasGroup.alpha > 0)
            {
                canvasGroup.alpha -= fadeRate;
                yield return(null);
            }
            screenFaderController.StartFadingToClear();
        }
    }