We will start looking at those recipes using graph-based logic in order to simulate sense. Again, we start by developing a sense of vision.
The seeing function using a graph-based system
Getting ready
It is important to have grasped Chapter 2, Navigation, in order to understand the inner workings of the graph-based recipes.
How to do it...
We will just implement a new file:
- Create the class for handling vision:
using UnityEngine; using System.Collections; using System.Collections.Generic; public class VisorGraph : MonoBehaviour { public int visionReach; ...