Exemplo n.º 1
0
        protected override void ActionProcess(Trigger trigger)
        {
            if (trigger == null)
            {
                return;
            }

            Actor target = trigger.owner;

            if (trigger is TrgCollision)
            {
                target = (trigger as TrgCollision).target;
            }

            if (target == null)
            {
                return;
            }

            Operable operable = target.GetOperable <T>();

            operable.state.SetState(stateType, doActive);
        }
Exemplo n.º 2
0
        protected override void ActionProcess(Trigger trigger)
        {
            Operable operable = trigger.owner.GetOperable <T>();

            operable.state.SetState(stateType, doActive);
        }
Exemplo n.º 3
0
 private void FixedUpdate()
 {
     Operable.GetOperableList <Collidable>()?.ForEach(o => o.isCollisionInFrame = false);
 }