protected override void Awake() { base.Awake(); if (TryGetComponent(out Directional directional)) { directional.OnDirectionChange.AddListener(OnDirectionChanged); } directionalPassable = GetComponent <DirectionalPassable>(); DenyEntry(); }
protected override void Awake() { base.Awake(); directionalPassable = GetComponent <DirectionalPassable>(); DenyEntry(); }