

- creating a static variable for the distance of RayCasting
- create another variable as a internal path for the static variable
- in Update() method,
- imply a RayCasting from the mission board, with the direction of forward
- with out keyword, put the information of RayCasting into hit variable
- put the distance between the mission board and player in toTarget
- connect the static variable and the path variable






- creating Variables
- in Update() method,
- put the distance from the RayCasting in PlayerCasting Class into “distance”
- for this, distanceFromTarget is set as Static
- put the distance from the RayCasting in PlayerCasting Class into “distance”
- in OnMouseOver() method,
- if the distance of RayCasting is less than 3,
- set ActionButton and ActionText active
- if Action button is pressed,
- set actionButton, ActionText, and Player inactive
- set UIQuest and Notice Camera active
- if the distance of RayCasting is less than 3,
- in OnMouseExit() method,
- set actionButton and actionText inactive





- Be careful with the position of Triggers
- If it’s buried in the other objects like the notice board, it is not detected by RayCasting















