add all mechanics
This commit is contained in:
parent
87383d5b8c
commit
0e2a7cc7c3
434 changed files with 238349 additions and 2092 deletions
|
|
@ -18,12 +18,14 @@ public class Enemy : Entity
|
|||
[SerializeField] private float variance;
|
||||
public Coroutine currentMovementRoutine;
|
||||
[Header("boss stuff")]
|
||||
[SerializeField] private bool isBossEnemy;
|
||||
public bool isBossEnemy;
|
||||
[SerializeField] private bool hasStartedDialogue;
|
||||
[Header("Attack")]
|
||||
[SerializeField] private float attackCooldown;
|
||||
private float currentAttackCooldown;
|
||||
[SerializeField] private DialogueScript thisBossDialogue;
|
||||
[SerializeField] private DialogueScript thisBossDialogue;
|
||||
[Header("Animation")]
|
||||
public Animator animator;
|
||||
public event Action onTakeDamage;
|
||||
|
||||
private void Start()
|
||||
|
|
@ -100,7 +102,10 @@ public class Enemy : Entity
|
|||
WaveManager.instance.UpdateKills();
|
||||
if (isBossEnemy)
|
||||
{
|
||||
WaveManager.instance.bossUI.SetActive(false);
|
||||
DialogueManager.instance.battleUIAnimator.SetTrigger(DialogueManager.instance.nobossTrigger);
|
||||
WaveManager.instance.musicSource.clip = WaveManager.instance.musicLoop;
|
||||
WaveManager.instance.musicSource.volume = WaveManager.instance.musicVolume;
|
||||
WaveManager.instance.musicSource.Play();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -129,7 +134,10 @@ public class Enemy : Entity
|
|||
if (isBossEnemy && !hasStartedDialogue)
|
||||
{
|
||||
hasStartedDialogue = true;
|
||||
DialogueManager.instance.StartDialogue(thisBossDialogue); //the worst code ever
|
||||
if (thisBossDialogue)
|
||||
{
|
||||
DialogueManager.instance.StartDialogue(thisBossDialogue); //the worst code ever
|
||||
}
|
||||
isStalled = true;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue