Ejemplo n.º 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);
            }
        }
    }