- NPC controller reworked completely - ability priority list for npc's - npc's with animations - damage over time effect added - burn, poison and bleed over time effects added
21 lines
428 B
C#
21 lines
428 B
C#
using Photon.Pun;
|
|
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
public class BossEnemyNPCController : BasicEnemyNPCController
|
|
{
|
|
[Header("Boss Related:")]
|
|
[SerializeField] protected GameEvent onBossDead;
|
|
|
|
[PunRPC]
|
|
protected override void RPC_OnDeath(bool lootDropped)
|
|
{
|
|
if (isDead) return;
|
|
|
|
onBossDead.Raise();
|
|
|
|
base.RPC_OnDeath(lootDropped);
|
|
}
|
|
}
|