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); }
protected override void ActionProcess(Trigger trigger) { Operable operable = trigger.owner.GetOperable <T>(); operable.state.SetState(stateType, doActive); }
private void FixedUpdate() { Operable.GetOperableList <Collidable>()?.ForEach(o => o.isCollisionInFrame = false); }