Ejemplo n.º 1
0
    // Start is called before the first frame update
    private void Start()
    {
        HP.SetMonsterHP(500);

        HPbar.SetActive(true);



        BossMonsterState = (int)MonsterState.Idle;
        BossMonsterType  = (int)MonsterType.Boss;
        MessageDispatcher.AddListener("PlayerDie", PlayerDie);
        MessageDispatcher.AddListener("SetWormAnimEnd", SetWormAnimEnd);
        MessageDispatcher.AddListener("WormSpawnedBee", WormSpawnedBee);
        MessageDispatcher.AddListener("WormHitTrigger", WormHitTrigger);
    }
Ejemplo n.º 2
0
    public void BossDie(IMessage rMessage)
    {
        HP.SetMonsterHP(0);
        bIsBossSpawn = true;

        MessageDispatcher.SendMessage(this, "SpawnedBee", 1, 0);

        DieEffect.transform.position = BodyPosition.transform.position;
        DieEffect.Play();

        ColiOff.SetActive(false);
        Destroy(this.gameObject, 3.0f);
    }
Ejemplo n.º 3
0
    public void BossWake()
    {
        if (bIsIceGolem)
        {
            gameObject.SetActive(true);
            Path.DOPlay();
        }

        HP.SetMonsterHP(400);

        BossAnim.SetTrigger(StartTrigger);
        BossColider.SetActive(true);

        if (!bIsIceGolem)
        {
            BossStartEffect();
            Dissolve.StartDissolve();
            MonsterHPBar.SetActive(true);
        }

        AttackRange.SetActive(true);


        coli.Rocks[0].transform.localPosition = new Vector3(0, -1, 1.89f);
        coli.Rocks[1].transform.localPosition = new Vector3(-0.67f, -1, 3.87f);
        coli.Rocks[2].transform.localPosition = new Vector3(0.49f, -1, 3.79f);
        coli.Rocks[3].transform.localPosition = new Vector3(-1.323f, -1, 5.954f);
        coli.Rocks[4].transform.localPosition = new Vector3(0.012f, -1, 6.022f);
        coli.Rocks[5].transform.localPosition = new Vector3(1.1f, -1, 6.17f);

        Vector3    direction = PlayerOBJ.transform.position - transform.position;
        Quaternion q         = Quaternion.LookRotation(new Vector3(direction.x, 0, direction.z));

        BossTimeOut = false;

        StartCoroutine("MonsterRotation", q);
    }
Ejemplo n.º 4
0
    public void BossWake()
    {
        HP.SetMonsterHP(400);

        BossAnim.SetTrigger(StartTrigger);
        BossColider.SetActive(true);
        BossStartEffect();

        AttackRange.SetActive(true);
        MonsterHPBar.SetActive(true);

        Vector3    direction = PlayerOBJ.transform.position - transform.position;
        Quaternion q         = Quaternion.LookRotation(new Vector3(direction.x, 0, direction.z));

        StartCoroutine("MonsterRotation", q);
        Invoke("SetNavTrue", 2.0f);
    }
Ejemplo n.º 5
0
 public void BossDie(IMessage rMessage)
 {
     HP.SetMonsterHP(0);
     bIsBossSpawn = true;
     Destroy(this.gameObject, 3.0f);
 }