예제 #1
0
        protected override void Awake()
        {
            base.Awake();

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