예제 #1
0
파일: Zone.cs 프로젝트: Nypsyy/Discere
        private void OnTriggerExit(Collider col)
        {
            var agent = col.GetComponentInParent <Agent>();

            foreach (var effect in OnExit)
            {
                var states = effect.Space == Space.Self ? agent.States : World.Instance.States;
                GOAPUtils.SetState(effect, states);
            }
        }
예제 #2
0
        public void Set(ActionEffect effect)
        {
            var states = effect.Space == Space.Self ? effect.Action.States : World.Instance.States;

            GOAPUtils.SetState(effect, states);
        }