Ejemplo n.º 1
0
        private void Awake()
        {
            Mover      = GetComponent <Mover>();
            PathFinder = GetComponent <PathFinder>();
            Awareness  = GetComponent <SurroundingAwareness>();

            Listeners.AddRange(GetComponentsInChildren <IEventListener <IState> >());
        }
Ejemplo n.º 2
0
    public void OnSceneGUI()
    {
        sa = target as SurroundingAwareness;
        if (!sa)
        {
            return;
        }

        Handles.color = Color.red;
        var transform = sa.transform;

        Handles.DrawWireDisc(transform.position, transform.forward, sa.SightRadius);
    }
Ejemplo n.º 3
0
 void Awake()
 {
     awareness = GetComponent <SurroundingAwareness>();
 }