Ejemplo n.º 1
0
    private void Awake()
    {
        _fadeBox.gameObject.SetActive(true);
        LeanTween.alphaCanvas(_fadeBox.GetComponent <CanvasGroup>(), 0, 1.5f).setEase(LeanTweenType.easeInOutSine)
        .setOnComplete(() => {
            _fadeBox.gameObject.SetActive(false);
        });

        Screen.SetResolution(1280, 720, true);
        Utils.SetResolution(_camera);
        _rainScript.RainStart(10.0f);
        StartCoroutine(Co_Character());

        if (!GameDataManager.getInstance.playBGM)
        {
            _bgm.Play();
            DontDestroyOnLoad(_bgm);
            GameDataManager.getInstance.playBGM = true;
        }
    }
Ejemplo n.º 2
0
    protected override void Excute(BehaviorData inData)
    {
        if (GameDataManager.getInstance.scriptPlayMode == GameDataManager.EScriptPlayMode.Load)
        {
            inData.time = 0;
        }

        if (inData.ContainForm("RAIN_START"))
        {
            _rainScript.gameObject.SetActive(true);
            _rainScript.RainStart(inData.time);
        }
        else if (inData.ContainForm("RAIN_END"))
        {
            _rainScript.RainEnd(inData.time);
        }
        else
        {
            Debug.LogError(StringHelper.Format("[{0}] 파티클 명령어가 등록되지 않았습니다!", inData.form));
        }
    }