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
RayCasting WorkingCreating Text UI for indicating KeyCreating Text UI for indicating ActionInputManager | Adding a buttonAdding a quest note with Plane“Quest001” Script
creating Variables
in Update() method,
put the distance from the RayCasting in PlayerCasting Class into “distance”
Adding RawImage UI | Making Notice UI for QuestSetting Components off as default valueNotice Camera for the QuestMaking a Trigger with CubeMaking a Trigger with Cube
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
Put Components in the scriptRayCasting WorkingAction Working