


- create variables
- the objective to configure
- the flag to indicate we finish the objective
- scale for the Objective
- in Update() method,
- make if statement
- change the locale scale of UI Text
- make it disappear when the scale is 0
- make if statement








- Since Animation Component is old one, to use it, we need to check Legacy option checked



- add Box Collider to prevent Player coming into Chest


- create Variable
- for RayCasting to get the distance between Player and this Object itself
- for Chest
- for UIs
- as a Flag to check whether we finish the obective
- in Update() method,
- get the distance
- if the distance is lower than a specific value,
- lower the scale of UI
- make it disapear
- in OnMouseDown() method,
- when Cursor is on the object, and the distance is lower than a specific vlaue,
- put the text into UI
- make UIs appear
- if Action button is pressed,
- turn off the Box Collider
- Play the animation of Chest
- set the flag
- turn off UIs
- when Cursor is on the object, and the distance is lower than a specific vlaue,


- create Variable
- for RayCasting to get the distance between Player and this Object itself
- for Sword
- for UIs
- as a Flag to check whether we finish the obective
- in Update() method,
- get the distance
- if the distance is lower than a specific value,
- lower the scale of UI
- make it disapear
- in OnMouseDown() method,
- when Cursor is on the object, and the distance is lower than a specific vlaue,
- put the text into UI
- make UIs appear
- if Action button is pressed,
- turn off the Box Collider
- Play the animation of Chest
- set the flag
- turn off UIs
- when Cursor is on the object, and the distance is lower than a specific vlaue,

