コード例 #1
0
    void OnTriggerEnter(Collider player)
    {
//		Debug.Log (player.gameObject.tag + " entered Boss V");
        if (player.gameObject.tag == "Player")
        {
            int pHealth = objectHealth.getHealth();
            if (!oneGreeting && pHealth >= 450)
            {
                oneGreeting = true;
                if (greetings != null)
                {
                    foreach (GameObject message in greetings)
                    {
                        chatterBox.queueTextMessage(message);
                    }
                }
            }

            if (gameCont != null)
            {
                gameCont.activateBoss(true);
                camControl.setBossLook(true);
            }
        }
    }
コード例 #2
0
    // Update is called once per frame
    void Update()
    {
        if (messages != null)
        {
            foreach (GameObject message in messages)
            {
                chatterBox.queueTextMessage(message);
            }
        }

        messages = null;
    }
コード例 #3
0
    void OnTriggerEnter(Collider player)
    {
//		Debug.Log (player.gameObject.tag + " entered Transition");
        if (player.gameObject.tag == "Player")
        {
            int pHealth = objectHealth.getHealth();
            if (!oneSizeWarning && pHealth <= 450)
            {
                oneSizeWarning = true;
                if (messages != null)
                {
                    foreach (GameObject message in messages)
                    {
                        chatterBox.queueTextMessage(message);
                    }
                }
            }
            if (camControl != null)
            {
                camControl.setTransitionCamera(true);
            }
        }
    }