コード例 #1
0
    private void StartBossDeathSequence()
    {
        Debug.Log("starting death sequence");

        // explosions
        for (int i = 0; i < 32; i++)
        {
            StartCoroutine(ExecuteAfterTime(UnityEngine.Random.Range(0, 2.4f), () => {
                Vector3 randomPos = explodePosition.position + new Vector3(
                    UnityEngine.Random.Range(0, 2f),
                    UnityEngine.Random.Range(0, 6f),
                    UnityEngine.Random.Range(0, 2f)) - new Vector3(0, 3f, 0);
                explosionHandler.PortalExplosion(randomPos);
            }));
        }

        // cheering animation
        game.celebrating = true;

        // dwarf convo
        StartCoroutine(ExecuteAfterTime(2f, () => {
            cameraController.focusTransform = null;
            convoHandler.StartConvo(conversation);
            startedConvo = true;
        }));

        // fade out to pub
    }
コード例 #2
0
 public void StartConvo()
 {
     Debug.Log("setting convo");
     convoHandler.StartConvo(this);
 }