コード例 #1
0
    IEnumerator movePlayerToBossArea()
    {
        fadeWindow.transition();
        playerScript.playerDead = true;
        yield return(new WaitForSeconds(1f));

        playerScript.transform.position = new Vector3(1500, -5);
        cameraScript.transform.position = new Vector3(1500, 0);
        cameraScript.GetComponent <Camera>().orthographicSize = 20;
        cameraScript.freeCam = true;
        skyClimberArmor.gameObject.SetActive(true);
    }
コード例 #2
0
    IEnumerator movePlayerToBossArea()
    {
        fadeWindow.transition();
        playerScript.playerDead = true;
        yield return(new WaitForSeconds(1f));

        cameraFog.SetActive(false);
        playerScript.transform.position = new Vector3(1400, -10);
        cameraScript.transform.position = new Vector3(1400, -10);
        cameraScript.GetComponent <Camera>().orthographicSize = 20;
        brassGolem.gameObject.SetActive(true);
        StartCoroutine(openingAnimation());
    }