
- when Player finishes the first Quest, change the saying of NPC by changing QuestNumber in QuestManager

- Adding Cube for Trigger for opening Gate

- creating variables
- for distance between Player and NPC
- UI – Buttons
- in Update() method,
- getting the distance by using PlayerCasting
- in OnMouseOver() method,
- if Player is close enough to NPC
- prevent Player from attacking
- set the UI Text with messeges for Gate
- if Action Button pressed
- allow Player to attack
- allow Player to use
- turn off UI Text
- if Player is close enough to NPC


- add Cube as a boundary for the boss to walk






- create variables
- where spider boss goes
- NavMeshAgent
- in Start() method,
- make the NavMeshAgent variable NavMeshAgent
- in Update() method,
- through the NavMeshAgent variable, set where the boss to go






- to prevent the boss from walking through the barriers, bake the barriers Non Walkable



- put Spider Boss in a Cube Object named SpiderBossTrigger as child object



- create variables
- spider boss itself
- as flag for attacking
- in Update() method,
- if attackTrigger is 0
- make the boss walk with the animation
- if attackTrigger is 0
- if dealDamage is 0
- get the boss attack by player the animation
- get the coroutine TakingDamage started
- if dealDamage is 0
- if attackTrigger is 0
- create IEnumerator TakingDamage()
- set dealDamage into 2
- wait for 1.1 sec
- if spider’s status is not dead
- get rid of one heart of Player
- wait for 0.5 sec
- set dealDamage into 0
- in OnTriggerEnter() method,
- when the boss touches Player, set attackTrigger into 1
- in OnTriggerExit() method,
- when Player gets out of the boss, set attackTrigger into 0

- Adding Script
- put SpiderBoss in the script



















































